Advertisement
Echo29681

Rebirth System

Dec 1st, 2013
646
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.21 KB | None | 0 0
  1. // ------------------------------------------------------------------------------------------
  2. // ------ Script Release
  3. // Title: Simple Rebirth System
  4. //
  5. // Original Author: Diconfrost VaNz
  6. // Modified by: Echo
  7. // Version: 1.0a
  8. //
  9. //Simply changes a player to novice high while tracking the number of rebirths completed
  10. //This provides an increasing number of statpoints with each successive rebirth.
  11. //ie. .bstats at 100 would give at 200 would give
  12. //Base Novice High 100 points 100 points
  13. //Rebirth 1: 200 points 300 points
  14. //Rebirth 2: 300 points 500 points
  15. //Rebirth 3: 400 points 700 points
  16. // ------------------------------------------------------------------------------------------
  17. vend_zone,92,113,4 script Ethereal Spirit 802,{
  18. set .@cost, 5000000; //Cost for Rebirth
  19. set .@blvl, 500; //Minimum Base Level for Rebirth
  20. set .@bstats, 200; //Bonus stats per rebirth
  21.  
  22. mes "[^FF0000Powerful Spirit^000000]";
  23. mes "*Rustle, Rustle*";
  24. set Rebirth, Rebirth;
  25. next;
  26. mes "[^FF0000Powerful Spirit^000000]";
  27. mes "Hello "+strcharinfo(0)+", I'm ^0055FFVertigo^000000.";
  28. mes "I can allow you to expand even further for a price....";
  29. mes "if you are ready...";
  30. next;
  31. mes "This will be rebirth number "+(Rebirth + 1)+" for you";
  32. next;
  33. switch(select("I'd like to know more about this process:I'm ready!:Cancel")) {
  34. case 1:
  35. mes "[^FF0000Vertigo^000000]";
  36. mes "This is how it works.";
  37. mes "Whenever you reach base level ^0055FF"+.@blvl+"^000000, you can be reborn again into a ^0055FFLevel 1 High Novice^000000, and recieve ^0055FF"+.@bstats+"^000000 stat points ^0055FFPer Rebirth^000000.";
  38. next;
  39. mes "[^FF0000Vertigo^000000]";
  40. mes "So if you want to maximize your power you'll need my services...";
  41. mes "Now come back when you are ready to do business...";
  42. close;
  43.  
  44. case 2:
  45. mes "[^FF0000Vertigo^000000]";
  46. mes "Well well well... ";
  47. mes "What do we have here?";
  48. next;
  49. mes "[^FF0000Vertigo^000000]";
  50. mes "Oh! you want to be reborn!";
  51. next;
  52. if (BaseLevel < .@blvl) goto R_Sorry;
  53. if (Class < 4001) goto R_Sorry2;
  54. if (prmm > gettimetick(2)) goto V_VIP;
  55. next;
  56. if (Zeny < .@cost) goto V_Zen;
  57. mes "[^FF0000Vertigo^000000]";
  58. mes "Come back again!";
  59. set zeny, zeny - .@cost;
  60. goto R_Reborn;
  61. close;
  62.  
  63. V_VIP:
  64. mes "[^FF0000Vertigo^000000]";
  65. mes "Oh you're a ^0055FFVIP^000000!";
  66. goto R_Reborn;
  67. close;
  68.  
  69. R_Reborn:
  70. jobchange 4001;
  71. Resetlvl 1;
  72. set StatusPoint, StatusPoint + ((Rebirth+1)*.@bstats);
  73. set Rebirth, Rebirth++;
  74. close;
  75.  
  76. R_Sorry:
  77. mes "[^FF0000Vertigo^000000]";
  78. mes "I'm sorry but you must meet the basic ^0055FFrequirements^000000.";
  79. mes "Your base level is lower than ^0055FF"+(.@blvl)+"^000000.";
  80. close;
  81.  
  82. R_Sorry2:
  83. mes "[^FF0000Vertigo^000000]";
  84. mes "You must meet the basic ^0055FFrequirements^000000.";
  85. mes "You must have atleast reached the class ^0055FFHigh Novice^000000.";
  86. close;
  87.  
  88. V_Zen:
  89. mes "[^FF0000Vertigo^000000]";
  90. mes "You need atleast ^0055FF"+.@cost+"^000000 Zeny.";
  91. mes "Please come back again.";
  92. close;
  93.  
  94. case 3:
  95. mes "[^FF0000Vertigo^000000]";
  96. mes "Very well... come again soon.";
  97. close;
  98. }
  99. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement