Jump to content
  • 0

Need help on Event Coin Exchanger


mysteryro

Question


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  08/09/16
  • Last Seen:  

Hi,

 

I'm New here I need some help for Event Coin Exchanger Script

I don know what I did wrong when I @reloadscript it did not came out

 

prontera,148,168,4 <tab>script<tab>Event Coin Changer<tab>733,{
 mes "[Event Coins Changer]";
  mes "Hi ^ff8000"+strcharinfo(0)+"^000000, I can exchange your coins to higher coins.";
  mes "^C0C0C05 Bronze Coin = 1 Silver Coin^000000";
  mes "^C9AE5D5 Silver Coin = 1 Gold Coin^000000";
  mes "^8B65085 Gold Coin = 1 Platinum Coin^000000";
  mes "What would you like to do?";
 next;
 switch(select("Bronze Coin to Silver Coin","Silver Coin to Gold Coin","Gold Coin to Platinum Coin:Platinum Coin to Gold Coin:Gold Coin to Silver Coin:Silver Coin to Bronze Coin")) {


 case 1:
 mes "How many you want to exchange?";
 next;
 input .@count;
 if (.@count == 0) close; // optional: if player enter 0 script will terminate
 if (countitem(673) < .@count*5) goto L_NE;
 delitem 673,.@count*5;
 getitem 675,.@count;
 close;
 case 2:
  mes "How many you want to exchange?";
  next;
  input .@count;
  if (.@count == 0) close; // optional: if player enter 0 script will terminate
  if (countitem(675) < .@count*5) goto L_NE;
  delitem 675,.@count*5;
  getitem 671,.@count;
  close;
 case 3:
  mes "How many you want to exchange?";
  next;
  input .@count;
  if (.@count == 0) close; // optional: if player enter 0 script will terminate
  if (countitem(671) < .@count*5) goto L_NE;
  delitem 671,.@count*5;
  getitem 677,.@count;
  close;
 case 4:
  mes "How many Coins do you want to exchange?";
  next;
  input .@count;
  if (.@count == 0) close; // optional: if player enter 0 script will terminate
  if (countitem(677) < .@count) goto L_NE;
  delitem 677,.@count;
  getitem 671,.@count*5;
  close;
 case 5:


  mes "How many Coins do you want to exchange?";
  next;
  input .@count;
  if (.@count == 0) close; // optional: if player enter 0 script will terminate
  if (countitem(671) < .@count) goto L_NE;
  delitem 671,.@count;
  getitem 675,.@count*5;
  close;
 case 6:


  mes "How many Coins do you want to exchange?";
  next;
  input .@count;
  if (.@count == 0) close; // optional: if player enter 0 script will terminate
  if (countitem(675) < .@count) goto L_NE;
  delitem 675,.@count;
  getitem 673,.@count*5;
  close;
 }



 L_NE:
  mes "You don't have enough of this coin.";
  close;
}
Edited by Radian
Link to comment
Share on other sites

14 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:  

Yes I add at custom file

 

 

I added your script on my server and I cleaned some spaces on it.

Currently, perfectly working.

 

Get the script here: http://upaste.me/966a304348e5ba0ba

 

Screenshot: http://imgur.com/dzbwFrX

 

If this still won't work, it might be the way you add the script.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

On this part

prontera,148,168,4 <tab>script<tab>Event Coin Changer<tab>733,{

it should be like this (remove the "<tab>")

prontera,148,168,4	script	Event Coin Changer	733,{
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  08/09/16
  • Last Seen:  

ya i did but still it did not came out on the game

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  162
  • Topics Per Day:  0.05
  • Content Count:  1546
  • Reputation:   192
  • Joined:  07/23/14
  • Last Seen:  

Did you read about adding scripts? https://rathena.org/wiki/Adding_a_Script

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  08/09/16
  • Last Seen:  

yes just now i read already but still cant came out the script did i type wrong something?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

have you tried to restart your server?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  08/09/16
  • Last Seen:  

Yes I try to restart also did not came out I really need some help

Link to comment
Share on other sites

  • 0

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

Hi,

 

I'm New here I need some help for Event Coin Exchanger Script

I don know what I did wrong when I @reloadscript it did not came out

 

prontera,148,168,4 <tab>script<tab>Event Coin Changer<tab>733,{
 mes "[Event Coins Changer]";
  mes "Hi ^ff8000"+strcharinfo(0)+"^000000, I can exchange your coins to higher coins.";
  mes "^C0C0C05 Bronze Coin = 1 Silver Coin^000000";
  mes "^C9AE5D5 Silver Coin = 1 Gold Coin^000000";
  mes "^8B65085 Gold Coin = 1 Platinum Coin^000000";
  mes "What would you like to do?";
 next;
 switch(select("Bronze Coin to Silver Coin","Silver Coin to Gold Coin","Gold Coin to Platinum Coin:Platinum Coin to Gold Coin:Gold Coin to Silver Coin:Silver Coin to Bronze Coin")) {


 case 1:
 mes "How many you want to exchange?";
 next;
 input .@count;
 if (.@count == 0) close; // optional: if player enter 0 script will terminate
 if (countitem(673) < .@count*5) goto L_NE;
 delitem 673,.@count*5;
 getitem 675,.@count;
 close;
 case 2:
  mes "How many you want to exchange?";
  next;
  input .@count;
  if (.@count == 0) close; // optional: if player enter 0 script will terminate
  if (countitem(675) < .@count*5) goto L_NE;
  delitem 675,.@count*5;
  getitem 671,.@count;
  close;
 case 3:
  mes "How many you want to exchange?";
  next;
  input .@count;
  if (.@count == 0) close; // optional: if player enter 0 script will terminate
  if (countitem(671) < .@count*5) goto L_NE;
  delitem 671,.@count*5;
  getitem 677,.@count;
  close;
 case 4:
  mes "How many Coins do you want to exchange?";
  next;
  input .@count;
  if (.@count == 0) close; // optional: if player enter 0 script will terminate
  if (countitem(677) < .@count) goto L_NE;
  delitem 677,.@count;
  getitem 671,.@count*5;
  close;
 case 5:


  mes "How many Coins do you want to exchange?";
  next;
  input .@count;
  if (.@count == 0) close; // optional: if player enter 0 script will terminate
  if (countitem(671) < .@count) goto L_NE;
  delitem 671,.@count;
  getitem 675,.@count*5;
  close;
 case 6:


  mes "How many Coins do you want to exchange?";
  next;
  input .@count;
  if (.@count == 0) close; // optional: if player enter 0 script will terminate
  if (countitem(675) < .@count) goto L_NE;
  delitem 675,.@count;
  getitem 673,.@count*5;
  close;
 }



 L_NE:
  mes "You don't have enough of this coin.";
  close;
}

Is there any error in the console?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  08/09/16
  • Last Seen:  

it did not have any error code,when i upload is athena/npc/custum,than @reloadscript it did not come out

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  193
  • Reputation:   41
  • Joined:  07/21/16
  • Last Seen:  

Did you even add it to your custom.conf file?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  08/09/16
  • Last Seen:  

You mean is the event coin exchange .conf?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

Try to add the path location of the script at npc/scripts_custom.conf

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  08/09/16
  • Last Seen:  

Yes I add at custom file

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  08/09/16
  • Last Seen:  

Thank you so much

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