Jump to content
  • 0

Question

Posted

guys, can you help me this? how to use script with this?

im using dynamic shop and i want to add monster requirements.

ex.

Requires:

100 Poring Coin

100 TCG

100 Necromancer (monster)

100 Poring (Monster)

etc. etc.

Thank you in advance.

3 answers to this question

Recommended Posts

Posted

Like I've shown you in the other Topic,I don't think that Lunar Cast added a Monster Kill Requirement Function to his Dynamic shop menu,to make a Quest NPC with Monster Kill Requirements you'll have to make it 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;
}

Posted

Yes sure,then you'll have to add :

if(countitem(ITEMID) < ITEM AMOUNT) goto l_noitem;
delitem ITEMID,ITEM AMOUNT;
getitem 501,1;

and then add the l_noitem label which says :

l_noitem:
mes "[ NPC NAME ]";
mes "Sorry there are missing some items!";
close;

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