god_global.txt 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. //===== rAthena Script =======================================
  2. //= God Item Quest - Variable Management
  3. //===== By: ==================================================
  4. //= MasterOfMuppets
  5. //===== Current Version: =====================================
  6. //= 1.2
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= Use this NPC if the seals quest variables get messed up.
  11. //===== Additional Comments: =================================
  12. //= 1.0 First version. [MasterOfMuppets]
  13. //= 1.1 Updated several aspects of the script. [L0ne_W0lf]
  14. //= 1.2 Renewal script update. [Euphy]
  15. //= Added GM management function.
  16. //============================================================
  17. sec_in02,15,170,0 script Golbal var 817,{
  18. callfunc "F_GM_NPC";
  19. mes "[Check]";
  20. mes "Please enter the password.";
  21. next;
  22. if (callfunc("F_GM_NPC",68392411,0) == 1) {
  23. mes "[Check]";
  24. mes "Please choose a menu.";
  25. next;
  26. switch(select("Now:No.1:No.2:No.3:No.4:Reset:god_sl_1:god_eremes:god_brising:god_mjo_0:god_mjo_1:god_mjo_2:god_mjo_3:god_mjo_4")) {
  27. case 1:
  28. mes "^0000FF$God1^000000 = ^FF0000" + $God1 + "^000000.";
  29. mes "^0000FF$God2^000000 = ^FF0000" + $God2 + "^000000.";
  30. mes "^0000FF$God3^000000 = ^FF0000" + $God3 + "^000000.";
  31. mes "^0000FF$God4^000000 = ^FF0000" + $God4 + "^000000.";
  32. close;
  33. case 2: callsub L_Number,"$God1"; break;
  34. case 3: callsub L_Number,"$God2"; break;
  35. case 4: callsub L_Number,"$God3"; break;
  36. case 5: callsub L_Number,"$God4"; break;
  37. case 6:
  38. mes "[Check]";
  39. mes "Are you really sure that you want to reset the entire list of God Globalvar?";
  40. mes "Please enter the password.";
  41. next;
  42. if (callfunc("F_GM_NPC",68392411,0) == 1) {
  43. mes "[Check]";
  44. mes "Now, the entire list of God Globalvar is being reset.";
  45. next;
  46. set $God1,0;
  47. set $God2,0;
  48. set $God3,0;
  49. set $God4,0;
  50. mes "^0000FF$God1^000000 = ^FF0000" + $God1 + "^000000.";
  51. mes "^0000FF$God2^000000 = ^FF0000" + $God2 + "^000000.";
  52. mes "^0000FF$God3^000000 = ^FF0000" + $God3 + "^000000.";
  53. mes "^0000FF$God4^000000 = ^FF0000" + $God4 + "^000000.";
  54. close;
  55. } else {
  56. mes "[Check]";
  57. mes "The command has been canceled.";
  58. close;
  59. }
  60. case 7: callsub L_Var,"god_sl_1"; break;
  61. case 8: callsub L_Var,"god_eremes"; break;
  62. case 9: callsub L_Var,"god_brising"; break;
  63. case 10: callsub L_Var,"god_mjo_0"; break;
  64. case 11: callsub L_Var,"god_mjo_1"; break;
  65. case 12: callsub L_Var,"god_mjo_2"; break;
  66. case 13: callsub L_Var,"god_mjo_3"; break;
  67. case 14: callsub L_Var,"god_mjo_4"; break;
  68. }
  69. } else {
  70. mes "[Check]";
  71. mes "Incorrect password.";
  72. close;
  73. }
  74. L_Number:
  75. input .@input,0,$@god_check2;
  76. mes "[Check]";
  77. mes "Would you like to change to "+.@input+"?";
  78. mes "Please enter the password.";
  79. next;
  80. if (callfunc("F_GM_NPC",68392411,0) == 1) {
  81. mes "[Check]";
  82. mes "The command "+.@input+" has been confirmed.";
  83. next;
  84. setd getarg(0),.@input;
  85. mes getarg(0)+" "+.@input;
  86. close;
  87. } else {
  88. mes "[Check]";
  89. mes "The command has been canceled.";
  90. close;
  91. }
  92. L_Var:
  93. input .@input;
  94. setd getarg(0),.@input;
  95. next;
  96. mes "[Check]";
  97. mes "Done.";
  98. close;
  99. OnInit:
  100. // Seals roll at 25/50 in Renewal and 50/100 in Pre-Renewal.
  101. if (checkre(0)) {
  102. set $@god_check1,25;
  103. set $@god_check2,50;
  104. } else {
  105. set $@god_check1,50;
  106. set $@god_check2,100;
  107. }
  108. end;
  109. }