Guest User

Untitled

a guest
Apr 21st, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. prontera,160,184,5 script Bank Note Manager 416,{
  2. //====================================[Credits To DaemonSpade]==========================//
  3. //====================================[Request Of Putera Hairi]==========================//
  4. //====================================[Customization Area]==========================//
  5. set .npcname$,"^0147FA[Bank Note Manager]^000000"; //NPC Name
  6. set .coinname$,"^0147FA Bank Note ^000000"; //Name of Item as Coin Used
  7. set .CoinID,25054; // Bank Note ID Set to Red Potion
  8. set .bnpoint,1; // Each Bank Note Price set to 1 is to 1
  9. set .capbanknote,30000; // Capacity of 30,000 Bank Note
  10.  
  11. //=================================================================================//
  12.  
  13. mes .npcname$;
  14. mes "Hello there - "+strcharinfo(0);
  15. mes "You currently have ^FF0000["+#BNPoint+"^000000] BPoints";
  16. mes "Bank Note Exchange Capacity is [^00FF33"+.capbanknote+"^000000] BPoints";
  17. switch(select("(Bank Note) to (Bank Points):(Bank Points) to (Bank Note)")) {
  18. Case 1:
  19. next;
  20. mes .npcname$;
  21. mes "How many Bank Note to exchange?";
  22. mes "Put The Bank Note Amount";
  23. mes "Put ^0000EE[0]^000000 to Cancel";
  24. mes "You currently have ^FF0000["+#BNPoint+"^000000] BPoints";
  25. mes "Bank Note Exchange Capacity is [^00FF33"+.capbanknote+"^000000] BPoints";
  26. next;
  27. do{
  28. input @Credit,0,countitem(.CoinID);
  29. if( @Credit < 1 ) close;
  30. }while( ( ( @Credit * .bnpoint ) + #BNPoint ) > .capbanknote );
  31. next;
  32. mes .npcname$;
  33. mes "Thanks";
  34. delitem .CoinID,@Credit;
  35. set #BNPoint,#BNPoint + ( @Credit * .bnpoint );
  36. close;
  37.  
  38. Case 2:
  39. next;
  40. mes .npcname$;
  41. mes "How much Bank Note you like to Gain?";
  42. mes "Put The Bank Note Amount";
  43. mes "Put ^0000EE[0]^000000 to Cancel";
  44. mes "You currently have ^FF0000["+#BNPoint+"^000000] BPoints";
  45. mes "Bank Note Exchange Capacity is [^00FF33"+.capbanknote+"^000000] BPoints";
  46. next;
  47. input @Credit,0,( #BNPoint / .bnpoint );
  48. if( @Credit < 1 ) close;
  49. next;
  50. mes .npcname$;
  51. mes "Thanks.";
  52. set #BNPoint,#BNPoint - ( @Credit * .bnpoint);
  53. getitem .CoinID,@Credit;
  54. close;
  55.  
  56. OnInit:
  57. waitingroom "Bank Note Manager",0;
  58. end;
  59. }
  60. close;
  61. }
Add Comment
Please, Sign In to add comment