Jump to content
  • 0

Question about cashpoint


Question

Posted

May I know if this is possible ? an Quest NPC that requires Cashpoint + Item ID for example there's a Poring hat quest but the requirements are 5 Cashpoint + TCG how to make it as a script. not a shop ! thanks in advance

2 answers to this question

Recommended Posts

Posted (edited)

May I know if this is possible ?

Possible

Sample

prontera,160,150,5	script	ghjkl	456,{

mes "For a Poring hat, you need :";
mes "- 5 Cashpoints";
mes "- 5 TCG card.";
next;

if( select( "I want this hat !", "Leave." ) -1 ) {
	mes "See you soon !";
	close;
}
//-- check items
if( countitem( 7227 ) < 5 || #CASHPOINTS < 5 ) {
	mes "Sorry you don't have all the items.";
	close;
}

mes "Here for you !";
delitem 7227, 5;
#CASHPOINTS -= 5;
dispbottom "Lost : 5 Cashpoints. Total : "+#CASHPOINTS+" Cashpoints.";

getitem 5035, 1;
close;
}

Edited by Capuche

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