yuhsing

Untitled

Feb 22nd, 2013
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.38 KB | None | 0 0
  1. // ----------------------------------------------------------------------------------------------// ------ Script Release
  2. // Title: Premium/ViP System
  3. // Author: Diconfrost VaNz - www.wipeoutgaming.info - [email protected]
  4. // Version: 1.3
  5. // Special thanks to the following for helping me making this script
  6. // Jezu
  7. // Dastgr
  8. // clydelion
  9. //
  10. // ------------------------------------------------------------------------------------------
  11. prontera,155,181,5 script Clahador 757,{
  12. function getPremiumTime;
  13.  
  14.  
  15. mes "[^FF0000Clahador^000000]";
  16. mes "Hello "+strcharinfo(0)+", I'm ^FF0000Clahador the butcher^000000.";
  17. mes "I will be of help if you need something.";
  18. next;
  19. mes "[^FF0000Clahador^000000]";
  20. mes "Oh! you need help?";
  21. mes "What kind of help do you need?";
  22. next;
  23. menu "Newbie here",P_New,"I'm a ViP!",P_VIP,"Nevermind",P_NVM;
  24.  
  25.  
  26. P_New:
  27.  
  28.  
  29. mes "[^FF0000Clahador^000000]";
  30. mes "Did you already claim your free items in the ^FF0000Freebies NPC^000000???";
  31. menu "Yes!",F_Yes,"No!",F_No;
  32.  
  33.  
  34. F_No:
  35. mes "[^FF0000Clahador^000000]";
  36. mes "You should get 'em!.";
  37. mes "It will help you on the start.";
  38. close;
  39.  
  40.  
  41. F_Yes:
  42. mes "[^FF0000Clahador^000000]";
  43. mes "Haha, i hope you like those items.";
  44. next;
  45. mes "By the way, you can earn zennies through quests like going to daily quest, request board, and many more!";
  46. mes "Did you know that you can have many zennies you want if you gonna hunt more rare items?";
  47. mes "Try it!";
  48. close;
  49.  
  50.  
  51. P_VIP:
  52. mes "[^FF0000Clahador^000000]";
  53. mes "Oh you avail our ViP Ticket!";
  54. mes "Thank you!";
  55. next;
  56. mes "[^FF0000Clahador^000000]";
  57. mes "Your ^0055FFPremium Time^000000 Left : "+getPremiumTime( #Premium );
  58. mes "You should maximize it";
  59. mes "Grind your skills and hunt now!";
  60. close;
  61.  
  62.  
  63. P_NVM:
  64. mes "[^FF0000Clahador^000000]";
  65. mes "Thank you!";
  66. mes "Come Again!";
  67. close;
  68.  
  69.  
  70. function getPremiumTime {
  71. set .@Time_Left, getarg(0) - gettimetick(2);
  72.  
  73. set .@Days, .@Time_Left / 86400;
  74. set .@Time_Left, .@Time_Left - (.@Days * 86400);
  75. set .@Hours, .@Time_Left / 3600;
  76. set .@Time_Left, .@Time_Left - (.@Hours * 3600);
  77. set .@Minutes, .@Time_Left / 60;
  78. set .@Time_Left, .@Time_Left - (.@Minutes * 60);
  79.  
  80. set .@Time$, "";
  81. if( .@Days > 1 )
  82. set .@Time$, .@Time$ + .@Days + " days, ";
  83. else if( .@Days > 0 )
  84. set .@Time$, .@Time$ + .@Days + " day, ";
  85.  
  86.  
  87. if( .@Hours > 1 )
  88. set .@Time$, .@Time$ + .@Hours + " hours, ";
  89. else if( .@Hours > 0 )
  90. set .@Time$, .@Time$ + .@Hours + " hour, ";
  91.  
  92.  
  93. if( .@Minutes > 1 )
  94. set .@Time$, .@Time$ + .@Minutes + " minutes, ";
  95. else if( .@Minutes > 0 )
  96. set .@Time$, .@Time$ + .@Minutes + " minute, ";
  97.  
  98.  
  99. if( .@Time_Left > 1 || .@Time_Left == 0 )
  100. set .@Time$, .@Time$ + .@Time_Left + " seconds.";
  101. else if( .@Time_Left == 1 )
  102. set .@Time$, .@Time$ + .@Time_Left + " second.";
  103.  
  104. return .@Time$;
  105. }
  106.  
  107.  
  108. OnPCLoginEvent:
  109. sc_end SC_EXPBOOST;
  110. sc_end SC_JEXPBOOST;
  111. sc_end SC_ITEMBOOST;
  112.  
  113.  
  114. if( #Premium > gettimetick(2) ){
  115. sc_start SC_EXPBOOST,(( #Premium - gettimetick(1) ) * 1000 ),300;
  116. sc_start SC_JEXPBOOST,(( #Premium - gettimetick(1) ) * 1000 ),200;
  117. sc_start SC_ITEMBOOST,(( #Premium - gettimetick(1) ) * 1000 ),200;
  118. dispbottom "Hello "+strcharinfo(0)+", your Premium Time Left : "+getPremiumTime( #Premium );
  119.  
  120.  
  121. }
  122. end;
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. }
Advertisement
Add Comment
Please, Sign In to add comment