Jump to content
  • 0

Question about cashpoint


aguyaguy

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   0
  • Joined:  12/17/11
  • Last Seen:  

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

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Simply use the original questshop provided in the svn, or just use Euphy's quest script.

Link to comment
Share on other sites

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.

×
×
  • Create New...