Jump to content
  • 0

Script doesn't work with new SVN


Question

Posted (edited)

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

5 answers to this question

Recommended Posts

Posted

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.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...