Jump to content
  • 0

Script doesn't work with new SVN


ToiletMaster

Question


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  276
  • Reputation:   7
  • Joined:  08/11/12
  • Last Seen:  

Hi guys,

it seems that my script currently doesn't work with the latest svn that i've downloaded. svn version 17049.

however, on svn 17006 it works great. I believe it has something to do with the npcskill i guess?

my mapserver doesn't show any errors as well.

sm_pri,11,10,4	script	Grandma	2339,{  
setnpcdisplay "Grandma", "Demon", 1605,2;
next;
monster "sm_pri",0,0,"Minions",1605,10,"Grandma::OnPoringKilled";
// By using 0,0 it will spawn them in a random place.
mes "Destroy him!";
// He summoned ten.
close;
OnPoringKilled:
	set PoringKilled,PoringKilled+1;
	if (PoringKilled==10) goto L_AllDead;
	end;
L_AllDead:
	monster "sm_pri",0,0,"Minions",1605,10,"Grandma::OnPoporingKilled";
	set PoringKilled,0;
	close;
OnPoporingKilled:
	set PoporingKilled,PoporingKilled+1;
	if (PoporingKilled==10) goto L_AllDDead;
	end;
L_AllDDead:
	announce "You've Managed to fight through the demons!",3;
	set PoporingKilled,0;
	setnpcdisplay "Grandma", "Demon", 1605,1;
	menu "k",L_Choice,"ok",L_Angel;
	close;

L_Choice
setnpcdisplay "Grandma", "Old Grandma", 2339,0;
mes "Hihihihihi";
close;

L_Angel:
setnpcdisplay "Grandma", "Old Grandma", 2339,0;
mes "Hello!!";
close;	
}  

This isn't the full script though. i deleted most of the parts where it has mes to shorten it. but i'm certain only this part has the problem currently.

Edited by ToiletMaster
Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

Is there any message on the map_server console window? just to make sure, have you included this script to the scripts_custom.conf and restarted the server?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  276
  • Reputation:   7
  • Joined:  08/11/12
  • Last Seen:  

yeah i did. it had like 5/6 npcs in my script. all of it is working except for this npc.

tried reloadscript and double checked everything worked. so far there's nothing on my map server that indicates that's giving a problem.

funny thing is it worked in svn 17006 (which i still have) and doesn't work with svn 17049.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

L_choice

should be

L_choice:

Before the first next; put a

mes "something";

With this, it works for me.

Edited by Capuche
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


  • Group:  Members
  • Topic Count:  76
  • Topics Per Day:  0.02
  • Content Count:  276
  • Reputation:   7
  • Joined:  08/11/12
  • Last Seen:  

L_choice

should be

L_choice:

Before the first next; put a

mes "something";

With this, it works for me.

i kinda edited the script abit cause of the huge mes so i think it's a bit messed up but my script is working nevertheless xD. Thanks for pointing it out though!

Thank you so much Emistry for posting it up!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...