Advertisement
Guest User

Untitled

a guest
Jan 16th, 2012
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. prontera,150,170,5 script Cash Trader 508,{
  2.  
  3. //,7179
  4. set .@coinid,7179;
  5. mes "[^0000FFCash Trader^000000]";
  6. mes "Hi ^ff8800"+strcharinfo(0)+"^000000,";
  7. mes "~ Exchange Poring Coins into Cash";
  8. mes "~ Exchange Cash into Poring Coins";
  9. mes "Your Cash Points: [^ff0000"+#CASHPOINTS+"^000000]";
  10. switch(select("^ff0000>^000000 Cancel:^0000ff>^000000 Exchange to Cash:^0000ff>^000000 Exchange to Pods"))
  11. {
  12.  
  13. case 1: break;
  14. case 2:
  15. next;
  16. mes "[^0000FFCash Trader^000000]";
  17. mes "Please input the amount of Pods that you want to exchange.";
  18. mes "Note: Put ^0000ff0^000000 to exit.";
  19.  
  20. L_inpcoin:
  21. input @hcoins;
  22. set @hhcoins,@hcoins;
  23. if(@hhcoins == 0) { break; }
  24. if(countitem(.@coinid) < @hhcoins) { mes "* ^ff0000Please input a valid amount^000000"; mes "(Put ^0000ff0^000000 to exit)."; goto L_inpcoin; }
  25. next;
  26. delitem .@coinid,@hhcoins;
  27. set #CASHPOINTS,#CASHPOINTS+@hhcoins;
  28. mes "[^0000FFCash Trader^000000]";
  29. mes "You've exchanged (^ff0000"+@hhcoins+"^000000) "+getitemname(.@coinid)+"(s). Total Cash Points: [^0000ff"+#CASHPOINTS+"^000000]";
  30. dispbottom "[Cash Trader] You've exchanged ("+@hhcoins+") "+getitemname(.@coinid)+"(s). Total Cash Points: ["+#CASHPOINTS+"]";
  31. break;
  32. case 3:
  33. next;
  34. mes "[^0000FFCash Trader^000000]";
  35. mes "Please input the amount of cash that you want to exchange.";
  36. mes "Note: Put ^0000ff0^000000 to exit.";
  37.  
  38. L_inpcash:
  39. input @hcash;
  40. set @hhcash,@hcash;
  41. if(@hhcash == 0) { break; }
  42. if(#CASHPOINTS < @hhcash) { mes "* ^ff0000Please input a valid amount^000000"; mes "(Put ^0000ff0^000000 to exit)."; goto L_inpcash; }
  43.  
  44. //I know they weight 0 but just in case you change its weight
  45. if (!checkweight(.@coinid,@hhcash)) { mes "* ^ff0000You're overweight please store some items.^000000"; dispbottom "[Cash Trader] You're overweight please store some items."; break; }
  46. next;
  47. set #CASHPOINTS,#CASHPOINTS - @hhcash;
  48. getitem .@coinid,@hhcash;
  49. mes "[^0000FFCash Trader^000000]";
  50. mes "You've exchanged (^ff0000"+@hhcash+"^000000) CashPoints to "+getitemname(.@coinid)+"(s). Total Cash Points: [^0000ff"+#CASHPOINTS+"^000000]";
  51. dispbottom "[Cash Trader] You've exchanged ("+@hhcash+") CashPoints to "+getitemname(.@coinid)+"(s). Total Cash Points: ["+#CASHPOINTS+"]";
  52. break;
  53. }
  54.  
  55. close;
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement