Jump to content
  • 0

requesting a Quest Script


Question

3 answers to this question

Recommended Posts

Posted (edited)

What do you mean with that? Do you want that the Player has to kill 100 Necromancer and 100 Porings first,before he/she get's the item?

I don't think that Lunarcast added this function to his Dynamic Shop menu,so the function for a Monster Kill requirement would be like this :

NPC HEADER {
mes "You have to kill:";
mes "100 Porings...";
mes "100 Fabres...";
mes "and 100 Chonchons";
next;
if(PoringKills < 100) goto l_nokills;
if(FabreKills < 100) goto l_nokills;
if(ChonKills < 100) goto l_nokills;
set PoringKills,PoringKills - 100;
set FabreKills,FabreKills - 100;
set ChonKills,Chonkills - 100;
	getitem 501,1;
	close;
l_nokills:
mes "You didn't kill enough monsters!";
close;
OnNPCKillEvent:
if(killedrid == 1002) //1002 = Poring
{
set PoringKills,PoringKills + 1;
}else if (killedrid == 1007) //1007 = Fabre
{
set FabreKills,FabreKills + 1;
}else if (killedrid == 1011) //1011 = Chonchon
{
set ChonKills,ChonKills + 1;
}
end;
}

Edited by Rikimaru

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...