Jump to content
  • 0

Question

2 answers to this question

Recommended Posts

  • 0
Posted

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;
}

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