Jump to content

Question

Posted

hi.

i would like to request a script that gioes like this...

in a Map. there's an NPC that needs a Certian Number/Quantiity of items before the party is warped

the items must be on its party leader...

1 answer to this question

Recommended Posts

Posted
if (!getcharid(1)) { mes "You're not in a party."; close; }
if (getcharid(0) != getpartyleader(getcharid(1),2)) { mes "You're not the party leader."; close; }
if (countitem(ITEM_ID) < AMOUNT) { mes "You don't have enough items."; close; }
delitem ITEM_ID, AMOUNT;
warp "MAP_NAME",X,Y;
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...