Jump to content
  • 0

Proof of Donation to Cash Points Converter


sneakz

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  41
  • Reputation:   0
  • Joined:  01/13/12
  • Last Seen:  

Does anyone has this kind of converter?

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  142
  • Topics Per Day:  0.03
  • Content Count:  511
  • Reputation:   7
  • Joined:  02/15/12
  • Last Seen:  


/***
 ** Script Request (Cash Trader NPC)
 ** Link: http://rathena.org/board/topic/57101-request-cash-trader/
 ** By Slim
 ***/

belagio,155,124,5 script Points Trader 107,{

//,677
set .@coinid,677;
mes "[^0000FFCash Trader^000000]";
mes "Hi ^ff8800"+strcharinfo(0)+"^000000,";
mes "~ Exchange Avenger Coins into Avenger Points";
mes "~ Exchange Avenger Points into Avenger Coins";
mes "Your Avenger Points: [^ff0000"+#CASHPOINTS+"^000000]";
switch(select("^ff0000>^000000 Cancel:^0000ff>^000000 Exchange to Avenger Points:^0000ff>^000000 Exchange to Avenger Coins"))
{

case 1: break;
case 2:
next;
mes "[^0000FFCash Trader^000000]";
mes "Please input the amount of coins that you want to exchange.";
mes "Note: Put ^0000ff0^000000 to exit.";

L_inpcoin:
input @hcoins;
set @hhcoins,@hcoins;
if(@hhcoins == 0) { break; }
if(countitem(.@coinid) < @hhcoins) { mes "* ^ff0000Please input a valid amount^000000"; mes "(Put ^0000ff0^000000 to exit)."; goto L_inpcoin; }
next;
delitem .@coinid,@hhcoins;
set #CASHPOINTS,#CASHPOINTS+@hhcoins;
mes "[^0000FFCash Trader^000000]";
mes "You've exchanged (^ff0000"+@hhcoins+"^000000) "+getitemname(.@coinid)+"(s). Total Avenger Points: [^0000ff"+#CASHPOINTS+"^000000]";
dispbottom "[Cash Trader] You've exchanged ("+@hhcoins+") "+getitemname(.@coinid)+"(s). Total Avenger Points: ["+#CASHPOINTS+"]";
break;
case 3:
next;
mes "[^0000FFCash Trader^000000]";
mes "Please input the amount of cash that you want to exchange.";
mes "Note: Put ^0000ff0^000000 to exit.";

L_inpcash:
input @hcash;
set @hhcash,@hcash;
if(@hhcash == 0) { break; }
if(#CASHPOINTS < @hhcash) { mes "* ^ff0000Please input a valid amount^000000"; mes "(Put ^0000ff0^000000 to exit)."; goto L_inpcash; }

//I know they weight 0 but just in case you change its weight
if (!checkweight(.@coinid,@hhcash)) { mes "* ^ff0000You're overweight please store some items.^000000"; dispbottom "[Cash Trader] You're overweight please store some items."; break; }
next;
set #CASHPOINTS,#CASHPOINTS - @hhcash;
getitem .@coinid,@hhcash;
mes "[^0000FFCash Trader^000000]";
mes "You've exchanged (^ff0000"+@hhcash+"^000000) AvengerPoints to "+getitemname(.@coinid)+"(s). Total Avenger Points: [^0000ff"+#CASHPOINTS+"^000000]";
dispbottom "[Cash Trader] You've exchanged ("+@hhcash+") AvengerPoints to "+getitemname(.@coinid)+"(s). Total Avenger Points: ["+#CASHPOINTS+"]";
break;
}

close;
}


You can change this

belagio,155,124,5

to anything you wanted

map name,<x>,<y>,<direction>

change this item id

set .@coinid,677;

to your ID desired, this is Proof of Donation

set .@coinid,7179;

You can change the Avenger words in anything you wanted. Because I've been using this script in my server :P

Edited by Paulinds
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  41
  • Reputation:   0
  • Joined:  01/13/12
  • Last Seen:  

Thanks a lot man. :P Really appreciate this script. :P

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  57
  • Topics Per Day:  0.01
  • Content Count:  248
  • Reputation:   7
  • Joined:  11/27/12
  • Last Seen:  

how to change the amount of coins to points?

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