Jump to content
  • 0
Sign in to follow this  
heroji

Exchange # items for 1 points...

Question

Hello it's me again :)

I cannot find a solution for this problem (I'm newbie), i want to make variable number of items to exchange for 1 points..

es: exchange 2 poring coins for 1 cash point.

script:

			mes @npcname$;
			mes "How many points would you like to exchange?";
			next;
			input @cantidad;
			mes @npcname$;
			mes " [^F79F81"+@cantidad+"^000000] ^F79F81PC^000000 Is that okay?";
			next;
			menu "Yes",-,"No",L_Cancel;
			if ( countitem(7539) < @cantidad) goto L_NoPC;
			delitem 7539,@cantidad;
			set #CASHPOINTS, #CASHPOINTS + @cantidad;
			mes @npcname$;
			mes "Alright, here you go! Let me know if you need my services again!";
			close2;
			cutin "",255;
			end;

 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.