Advertisement
Guest User

Untitled

a guest
Jun 26th, 2014
236
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 KB | None | 0 0
  1. // ------------------------------------------------------------------------------------------
  2. // ------ Script Release
  3. // Title: Premium/ViP Services System
  4. // Author: Diconfrost VaNz - www.wipeoutgaming.info - etherealruneguard@yahoo.com
  5. // Version: 2.1
  6. // Special thanks to the following for helping me making this script
  7. // Jezu
  8. // Dastgr
  9. // clydelion
  10. //
  11. // Note: This is a character-based script. If you want to make this into Account-Based, just put "#" beside "prmm".
  12. // ------------------------------------------------------------------------------------------
  13. prontera,154,196,4 script Premium Membership 833,{
  14.  
  15. mes "[^FF0000Premium Membership Manager^000000]";
  16. mes "Hello "+strcharinfo(0)+", I'm the one in charge of all Premium Memberships for tbRO.";
  17. mes "How may I help you today?";
  18. next;
  19. menu "Tell me about Premium Membership.",P_New,"I'm already ViP!",P_VIP,"Nevermind",P_NVM;
  20.  
  21. P_New:
  22. mes "[^FF0000Premium Membership Manager^000000]";
  23. mes "Premium membership will gain you extra 50% boost of both BASE and JOB experience with additional 100% drop rate.";
  24. mes "To avail of a Premium Membership for 3 days, you need a ^FF0000Midgard Premium Ticket^000000 that's available in Donation, Vote and Poring Shop.";
  25. menu "Yes!",F_Yes,"No!",F_No;
  26.  
  27. F_No:
  28. mes "[^FF0000Premium Membership Manager^000000]";
  29. mes "You should get 'em!.";
  30. mes "It will help you on the start.";
  31. close;
  32.  
  33. F_Yes:
  34. mes "[^FF0000Premium Membership Manager^000000]";
  35. mes "Haha, i hope you like those items.";
  36. next;
  37. mes "By the way, you can earn zennies through quests like going to daily quest, request board, and many more!";
  38. mes "Did you know that you can have many zennies you want if you gonna hunt more rare items?";
  39. mes "Try it!";
  40. close;
  41.  
  42. P_VIP:
  43. mes "[^FF0000Premium Membership Manager^000000]";
  44. mes "Oh you avail our ViP Ticket!";
  45. mes "Thank you!";
  46. next;
  47. mes "[^FF0000Premium Membership Manager^000000]";
  48. mes "Your Premium Service will expire after " + callfunc("Time2Str",prmm);
  49. mes "You should maximize it";
  50. mes "Grind your skills and hunt now!";
  51. close;
  52.  
  53. P_NVM:
  54. mes "[^FF0000Premium Membership Manager^000000]";
  55. mes "Thank you!";
  56. mes "Come Again!";
  57. close;
  58. }
  59.  
  60. function script getPremium {
  61. set .@ticks, getarg(0);
  62. if (.@ticks <= 0)
  63. {
  64. debugmes "getPremium - tried to set a timer in the past";
  65. end;
  66. }
  67. set prmm, ((prmm > gettimetick(2)) ? prmm : gettimetick(2)) + .@ticks;
  68. doevent "login::OnPCLoginEvent";
  69. return;
  70. }
  71.  
  72. - script login -1,{
  73. OnPCLoginEvent:
  74. if (prmm > gettimetick(2)) {
  75. dispbottom "Your Premium Service will expire after " + callfunc("Time2Str",prmm);
  76. sc_start SC_ITEMBOOST,(( prmm - gettimetick(2) ) * 1000 ),200;
  77. sc_start SC_EXPBOOST,(( prmm - gettimetick(2) ) * 1000 ),200;
  78. sc_start SC_JEXPBOOST,(( prmm - gettimetick(2) ) * 1000 ),200;
  79. atcommand "@adjgroup 1 "+strcharinfo(0);
  80. deltimer strnpcinfo(3)+"::OnPCLoginEvent";
  81. if ((prmm - gettimetick(2)) < 2147483)
  82. {
  83. addtimer (prmm - gettimetick(2)) *1000, strnpcinfo(3)+"::OnPCLoginEvent";
  84. }
  85. else
  86. {
  87. addtimer 2147483000, strnpcinfo(3)+"::OnPCLoginEvent";
  88. }
  89. } else if (prmm) {
  90. atcommand "@adjgroup 0 "+strcharinfo(0);
  91. sc_end SC_EXPBOOST;
  92. sc_end SC_JEXPBOOST;
  93. sc_end SC_ITEMBOOST;
  94. set prmm, 0;
  95. dispbottom "Premium Services has ended.";
  96. }
  97. end;
  98.  
  99. OnAtcommand:
  100. dispbottom "Your Premium Service will expire after " + callfunc("Time2Str",prmm);
  101. end;
  102.  
  103. OnInit:
  104. bindatcmd "premium",strnpcinfo(3)+"::OnAtcommand";
  105. end;
  106.  
  107. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement