Advertisement
johnlol

Sra. Skill

Jul 2nd, 2020
2,022
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. ________________     ______            ________      
  3. ___    |_____  /________  /______      ___  __ \_____
  4. __  /| |  __  /_  __ \_  __ \  _ \     __  /_/ /  __ \
  5. _  ___ / /_/ / / /_/ /  /_/ /  __/     _  _, _// /_/ /
  6. /_/  |_\__,_/  \____//_.___/\___/      /_/ |_| \____/
  7.  
  8. */
  9.  
  10. sec_in02,153,153,2  script  Sra. Skill  430,{
  11.  
  12. set @skprice, 1000000;
  13. set @sksellprice, 500000;
  14. mes "[^CC0000Skill Point Merchant^000000]";
  15. mes "Hello "+strcharinfo(0)+"!";
  16. mes "Each point will cost [^ff0000" +@skprice+ "z^000000] zeny.";
  17. mes "and I can buy it for [^ff0000" +@sksellprice+ "z^000000] zeny.";
  18. mes  "What do you want to do?";
  19. next;
  20. menu "Buy skill points!",L_skill,"Sell skill points!",L_sellskill,"No, thanks.",L_decline;
  21. L_decline:
  22. mes "[^CC0000Skill Point Merchant^000000]";
  23. mes "Please come back soon.";
  24. close;
  25.  
  26. L_skill:
  27. if(Zeny<@skprice){
  28. emotion 17;
  29. mes "[^CC0000Skill Point Merchant^000000]";
  30. mes "Sorry. You don't have enough money";
  31. close;
  32. }
  33. else {
  34. mes "[^CC0000Skill Point Merchant^000000]";
  35. mes "How many skill points do you want to buy?";
  36. input @skpoints;
  37. next;
  38. if(Zeny<@skpoints*@skprice){
  39. mes "[^CC0000Skill Point Merchant^000000]";
  40. mes"I'm sorry you don't have enough money for that...";
  41. close;}
  42. else{
  43. set Zeny, Zeny-(@skpoints*@skprice);
  44. set skillpoint, skillpoint+ @skpoints;
  45. mes "[^CC0000Skill Point Merchant^000000]";
  46. mes "There you go! Have a nice day.";
  47. emotion 15;
  48. close;
  49. end;
  50. }}
  51.  
  52. L_sellskill:
  53. if(skillpoint<1){
  54. emotion 17;
  55. mes "[^CC0000Skill Point Merchant^000000]";
  56. mes "Sorry. You don't have any skillpoint.";
  57. close;
  58. }
  59. else {
  60. mes "[^CC0000Skill Point Merchant^000000]";
  61. mes "How many skill points do you want to sell?";
  62. input @skpoints;
  63. next;
  64. if(@skpoints>skillpoint){
  65. mes "[^CC0000Skill Point Merchant^000000]";
  66. mes"I'm sorry you don't have enough skillpoints for that...";
  67. close;}
  68. if(@skpoints<1){
  69. mes "[^CC0000Skill Point Merchant^000000]";
  70. mes"Huh?!";
  71. close;}
  72. else{
  73. set Zeny, Zeny+(@skpoints*@sksellprice);
  74. set skillpoint, skillpoint- @skpoints;
  75. mes "[^CC0000Skill Point Merchant^000000]";
  76. mes "There you go! Have a nice day.";
  77. emotion 15;
  78. close;
  79. end;
  80. }
  81. }
  82. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement