Hi Guys,
I need your help. This is my first self-made NPC, the kill counter works and you can also submit the quest, but he writes the messages all one after the other although he should do it in different message boxes.
can someone please help me and explain what I'm doing wrong.
chry_fld,62,73,4 script Uppe 894,{
mes "Hallo ich bin Uppe.";
mes "Ich brauche deine Hilfe!";
mes "Kannst du bitte 10 Poringe besiegen.";
mes "Ich gebe dir auch eine kleine Belohnung.";
next;
mes "Danke das du 10 Poringe besiegt hast.";
mes "Hier ist deine Belohnung.";
mes "Kannst du mir noch einen Gefallen tun?";
mes "Solltest du nach Prontera reisen, kannst du meinen Bruder Ornn besuchen";
mes "Er hat bestimmt weitere Missionen, wo du ihm helfen kannst.";
next;
if(PoringKills < 10) goto l_nokills;
set PoringKills,PoringKills - 10;
getitem 569,400;
getexp 500,300;
close;
l_nokills:
mes "Du hast noch keine 10 Poringe besiegt.!";
mes "Komm wieder wenn du sie besiegt hast.!";
close;
OnNPCKillEvent:
if(killedrid == 1002) //1002 = Poring
{
set PoringKills,PoringKills + 1;
}
close;
end;
OnInit:
waitingroom "Novice Mission",0;
end;
}
}
Question
Shark28
Hi Guys,
I need your help. This is my first self-made NPC, the kill counter works and you can also submit the quest, but he writes the messages all one after the other although he should do it in different message boxes.
can someone please help me and explain what I'm doing wrong.
chry_fld,62,73,4 script Uppe 894,{ mes "Hallo ich bin Uppe."; mes "Ich brauche deine Hilfe!"; mes "Kannst du bitte 10 Poringe besiegen."; mes "Ich gebe dir auch eine kleine Belohnung."; next; mes "Danke das du 10 Poringe besiegt hast."; mes "Hier ist deine Belohnung."; mes "Kannst du mir noch einen Gefallen tun?"; mes "Solltest du nach Prontera reisen, kannst du meinen Bruder Ornn besuchen"; mes "Er hat bestimmt weitere Missionen, wo du ihm helfen kannst."; next; if(PoringKills < 10) goto l_nokills; set PoringKills,PoringKills - 10; getitem 569,400; getexp 500,300; close; l_nokills: mes "Du hast noch keine 10 Poringe besiegt.!"; mes "Komm wieder wenn du sie besiegt hast.!"; close; OnNPCKillEvent: if(killedrid == 1002) //1002 = Poring { set PoringKills,PoringKills + 1; } close; end; OnInit: waitingroom "Novice Mission",0; end; } }
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.