gm_npcs.txt 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. //===== rAthena Script =======================================
  2. //= GM Management NPCs
  3. //===== By: ==================================================
  4. //= Euphy
  5. //===== Current Version: =====================================
  6. //= 1.0
  7. //===== Compatible With: =====================================
  8. //= rAthena Project
  9. //===== Description: =========================================
  10. //= Controls the official GM management NPCs in certain scripts.
  11. //===== Additional Comments: =================================
  12. //= 1.0 First version.
  13. //============================================================
  14. // callfunc("F_GM_NPC"{,<password>,<0:int | 1:str>{,<min>,<max>}})
  15. function script F_GM_NPC {
  16. // To disable all GM NPCs, uncomment the line below.
  17. //end;
  18. // To set a minimum GM level to access the NPCs, edit the line below.
  19. if (getgmlevel() < 99) {
  20. // Log the event.
  21. getmapxy(.@map$,.@x,.@y,BL_NPC);
  22. logmes strcharinfo(0)+" attempted to access GM NPC "+strnpcinfo(0)+" ("+.@map$+","+.@x+","+.@y+").";
  23. end;
  24. }
  25. if (!getargcount()) return;
  26. // To disable password inputs, uncomment the line below.
  27. //return 1;
  28. // Password return values:
  29. // 1: correct input
  30. // 0: incorrect input
  31. // -1: zero/cancel (integer only)
  32. // -2: out of bounds (integer only)
  33. if (getarg(1) == 0) {
  34. // Integer password
  35. if (getarg(3,0)) {
  36. .@error = input(.@input,getarg(2),getarg(3));
  37. if (.@error)
  38. return -2;
  39. } else
  40. input .@input;
  41. if (.@input == 0)
  42. return -1;
  43. else
  44. return (.@input == getarg(0))?1:0;
  45. } else {
  46. // String password
  47. input .@inputstr$;
  48. return (.@inputstr$ == getarg(0))?1:0;
  49. }
  50. }
  51. /*
  52. List of GM Management NPCs (incomplete)
  53. --------------------------
  54. [ Battleground ]
  55. - Switch#batgnd
  56. - Release all#b01
  57. - Release all#b02
  58. - Release all#a01
  59. - Release all#a02
  60. [ Guild-related ]
  61. - Event controller#aru_gd
  62. - Event controller#sch_gd
  63. - Festival Manager#gq_fes0
  64. - Festival Manager#gq_fes2
  65. - Godly Item Quests#god
  66. - Golbal var
  67. - Investment_total#fund00 (RE)
  68. [ Instances ]
  69. ------ Endless Tower -----
  70. - #102Administrator Mode
  71. - Purification Stone#et2
  72. - #Manager Mode1
  73. - #Manager Mode2
  74. - #Manager Mode3
  75. - #Manager Mode4
  76. - #Manager Mode5
  77. --------------------------
  78. - Nidhoggur Manager
  79. - Purification Admin#nyd2
  80. - Bakonawa's Rage (RE)
  81. - Bangungot Gate (RE)
  82. - Horror Toy Factory (RE)
  83. - Faceworm's Nest (RE)
  84. [ Job-related ]
  85. ----- 3rd Class (RE) -----
  86. - control#arch
  87. - #GMhelper01_gc
  88. - #GMhelper02_gc
  89. - Worker#job_ranger
  90. - R.Knight Job Manager
  91. - #renshucheck
  92. - sorcereryal
  93. - Button Girl#wl
  94. - Button Girl#sura
  95. - Battle Test Control#ko
  96. - Guide#ko_helper
  97. - Admin1
  98. --------------------------
  99. - Soul Linker Var
  100. - 1st Job Quest Reset
  101. - Job Repair (RE)
  102. [ Quest ]
  103. --------- Renewal --------
  104. - 13.3 Related Reset
  105. - Scaraba Dungeon Entrance
  106. - Assistant#para_suvquest
  107. - Guidance for quest#ml
  108. - Initializing Mora Sanjo
  109. - Theore Set Guid
  110. - Field Bush Switch
  111. - Bakonawa Intro Helper
  112. - Pintados Manager#pin
  113. - #pa0829Reactor11
  114. - New Oz Image#1
  115. - Professor Aide#worm
  116. --------------------------
  117. - Allied Manager#gm
  118. - #timer_alba01
  119. - Translator Preparation#1
  120. - ep13_nd2f_mng
  121. - Factory Quest Test
  122. - boss::lght_boss_admin
  123. - #LyozienSwitch
  124. - Juperos Manager
  125. - Extra Story Patch
  126. - boss::boss_aru_monas
  127. - Koshei GlobalVar#admin
  128. - Morroc GlobalVar Admin::MorrocAdmin_sec
  129. - Morroc GlobalVar Admin::MorrocAdmin_moc
  130. - Morroc Invasion Manager (disabled)
  131. [ Other ]
  132. -------- Marriage --------
  133. - The King of Midgart
  134. - Divorce Staff
  135. - Remarry Staff
  136. ------ Izlude Arena ------
  137. - log-on-aco#arena
  138. - acolink#arena
  139. - Arena Manager#arena
  140. - Reward Manager#arena
  141. - Picture Manager#arena
  142. - Live Broadcast#arena
  143. - #arenacontrol
  144. --------------------------
  145. - Monster Race Manager
  146. - Vote Globalvar Girl#yuno (disabled)
  147. - 2013questreset2#xmas (event, disabled)
  148. --------------------------
  149. - Mercenary Switch#Spear
  150. - Mercenary Switch#Bow
  151. - Mercenary Switch#Sword
  152. */