Jump to content
  • 0
Subzero

Gold Exchanger NPC

Question

hello guys, i'm requesting script for coin to coin
example:

10 Gold - 10 Poring Coin

10 Gold - 10 TCG

10 Gold - 10 Berry

 

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

How about this?

 

prontera,152,183,4	script	rAthena	100,{
	switch(select("Poring Coin","TCG Card","Berry")){
		case 1:
			if(countitem(671) >= 10) { // 10 Gold Coin to 10 Poring Coin
				getitem 7539,10;
				delitem 671,10;
				close;
			}
			else {
				callsub OnEnd;
				close;
			}
		case 2:
			if(countitem(671) >= 10) { // 10 Gold Coin to 10 TCG Card
				getitem 7227,10;
				delitem 671,10;
				close;
			}
			else {
				callsub OnEnd;
				close;
			}
		case 3:
			if(countitem(671) >= 10){ // 10 Gold Coin to 10 Yggdrasil Berry
				getitem 607,10;
				delitem 671,10;
				close;
			}
			else {
				callsub OnEnd;
				close;
			}
	}
	OnEnd:
		dispbottom "You don't have enough Gold Coin";
		close;
}
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...

Important Information

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