Jump to content
  • 0

Gold Exchanger NPC


Subzero

Question


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  60
  • Reputation:   0
  • Joined:  07/25/16
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  281
  • Reputation:   14
  • Joined:  10/14/13
  • Last Seen:  

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

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

something similar that I wrote 4 years ago o-o

http://upaste.me/1d10278cd3db1e7

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