god_global.txt 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. //===== eAthena Script =======================================
  2. //= Variable Management NPC for the god item quest
  3. //===== By: ==================================================
  4. //= MasterOfMuppets
  5. //===== Current Version: =====================================
  6. //= 1.1
  7. //===== Compatible With: =====================================
  8. //= eAthena
  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. //============================================================
  15. sec_in02,15,170,0 script Golbal var 817,{
  16. //mes "[Check]";
  17. //mes "Please enter the password.";
  18. //next;
  19. //set .@check,68392411;
  20. //dlgwrite 0 10000000
  21. //if (check == input){
  22. if (getgmlevel() > 98) {
  23. mes "[Check]";
  24. mes "Please choose a menu.";
  25. next;
  26. switch(select("Now:No.1:No.2:No.3:No.4:Reset")) {
  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:
  34. input .@input,0,100;
  35. mes "[Check]";
  36. mes "Would you like to change to "+.@input+"?";
  37. next;
  38. if (select("Yes:No") == 1) {
  39. mes "[Check]";
  40. mes "The command "+.@input+" has been confirmed.";
  41. next;
  42. set $God1,.@input;
  43. mes "$God1 "+.@input+"";
  44. close;
  45. }
  46. else {
  47. mes "[Check]";
  48. mes "The command has been canceled.";
  49. close;
  50. }
  51. case 3:
  52. input .@input,0,100;
  53. mes "[Check]";
  54. mes "Would you like to change to "+.@input+"?";
  55. next;
  56. if (select("Yes:No") == 1) {
  57. mes "[Check]";
  58. mes "The command "+.@input+" has been confirmed.";
  59. next;
  60. set $God2,.@input;
  61. mes "$God2 "+.@input+"";
  62. close;
  63. }
  64. else {
  65. mes "[Check]";
  66. mes "The command has been canceled.";
  67. close;
  68. }
  69. case 4:
  70. input .@input,0,100;
  71. mes "[Check]";
  72. mes "Would you like to change to "+.@input+"?";
  73. next;
  74. if (select("Yes:No") == 1) {
  75. mes "[Check]";
  76. mes "The command "+.@input+" has been confirmed.";
  77. next;
  78. set $God3,.@input;
  79. mes "$God3 "+.@input+"";
  80. close;
  81. }
  82. else {
  83. mes "[Check]";
  84. mes "The command has been canceled.";
  85. close;
  86. }
  87. case 5:
  88. input .@input,0,100;
  89. mes "[Check]";
  90. mes "Would you like to change to "+.@input+"?";
  91. next;
  92. if (select("Yes:No") == 1) {
  93. mes "[Check]";
  94. mes "The command "+.@input+" has been confirmed.";
  95. next;
  96. set $God4,.@input;
  97. mes "$God4 "+.@input+"";
  98. close;
  99. }
  100. else {
  101. mes "[Check]";
  102. mes "The command has been canceled.";
  103. close;
  104. }
  105. case 6:
  106. mes "[Check]";
  107. mes "Are you really sure that you want to reset the entire list of God Globalvar?";
  108. next;
  109. if (select("Yes:No") == 1) {
  110. mes "[Check]";
  111. mes "Now, the entire list of God Globalvar is being reset.";
  112. next;
  113. set $God1,0;
  114. set $God2,0;
  115. set $God3,0;
  116. set $God4,0;
  117. mes "^0000FF$God1^000000 = ^FF0000" + $God1 + "^000000.";
  118. mes "^0000FF$God2^000000 = ^FF0000" + $God2 + "^000000.";
  119. mes "^0000FF$God3^000000 = ^FF0000" + $God3 + "^000000.";
  120. mes "^0000FF$God4^000000 = ^FF0000" + $God4 + "^000000.";
  121. close;
  122. }
  123. else {
  124. mes "[Check]";
  125. mes "The command has been canceled.";
  126. close;
  127. }
  128. }
  129. }
  130. else {
  131. mes "[Check]";
  132. //mes "Incorrect password.";
  133. mes "You cannot access this NPC.";
  134. close;
  135. }
  136. }