Advertisement
ryax

exchange

May 31st, 2013
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. //===== Ragnarok Exchange Script =======================================
  2. //= Exchanger
  3. //===== By: ==================================================
  4. //= Rayan
  5. //===== Current Version: =====================================
  6. //= 1.0
  7. //===== Compatible With: =====================================
  8. //= eAthena and rAthena
  9. //===== Version History: =====================================
  10. //= v1.0
  11. //============================================================
  12.  
  13. prontera,156,280,3 script Exchanger 60,{
  14. set .@name$,"[Exchanger]";
  15.  
  16. mes .@name$;
  17. mes "Hi! What Can i Do For You?";
  18. menu "Change my Zeny into Items",go,"Nothing",ex;
  19. ex:
  20. next;
  21. mes .@name$;
  22. mes "Okay Bye!";
  23. close;
  24. go:
  25. next;
  26. mes .@name$;
  27. mes "What Do you want To Be Changed?";
  28. menu "30 Jellopy - 900.000zeny ",jp,"30 Orcish Voucher - 3 Mil",ov;
  29.  
  30. jp:
  31. next;
  32. mes .@name$;
  33. mes "Please Input The Number of Jellopy You Need";
  34.  
  35. input .@t;
  36. logmes .@t +" SC with "+ Zeny +" Zeny";
  37. if (checkweight(931,.@t)) {
  38. if( Zeny < 30000*.@t ){mes "You dont have enough zeny."; close; }
  39. set Zeny,Zeny-30000*.@t;
  40. getitem 909,.@t;
  41. } else {
  42. mes "You don't have enough space in your inventory.";
  43. }
  44. close;
  45.  
  46.  
  47. ov:
  48. next;
  49. mes .@name$;
  50. mes "Please Input The Number of Orcish Voucher You Need";
  51.  
  52. input .@t;
  53. logmes .@t +" SC with "+ Zeny +" Zeny";
  54. if (checkweight(931,.@t)) {
  55. if( Zeny < 100000*.@t ){mes "You dont have enough zeny."; close; }
  56. set Zeny,Zeny-100000*.@t;
  57. getitem 931,.@t;
  58. } else {
  59. mes "You don't have enough space in your inventory.";
  60. }
  61. close;
  62.  
  63. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement