gm_npcs.txt 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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. - Central Laboratory (RE)
  85. - Morse's Cave (RE)
  86. [ Job-related ]
  87. ----- 3rd Class (RE) -----
  88. - control#arch
  89. - #GMhelper01_gc
  90. - #GMhelper02_gc
  91. - Worker#job_ranger
  92. - R.Knight Job Manager
  93. - #renshucheck
  94. - sorcereryal
  95. - Button Girl#wl
  96. - Button Girl#sura
  97. - Battle Test Control#ko
  98. - Guide#ko_helper
  99. - Admin1
  100. --------------------------
  101. - Soul Linker Var
  102. - 1st Job Quest Reset
  103. - Job Repair (RE)
  104. [ Quest ]
  105. --------- Renewal --------
  106. - 13.3 Related Reset
  107. - Scaraba Dungeon Entrance
  108. - Assistant#para_suvquest
  109. - Guidance for quest#ml
  110. - Initializing Mora Sanjo
  111. - Theore Set Guid
  112. - Field Bush Switch
  113. - Bakonawa Intro Helper
  114. - Pintados Manager#pin
  115. - #pa0829Reactor11
  116. - New Oz Image#1
  117. - Professor Aide#worm
  118. --------------------------
  119. - Allied Manager#gm
  120. - #timer_alba01
  121. - Translator Preparation#1
  122. - ep13_nd2f_mng
  123. - Factory Quest Test
  124. - boss::lght_boss_admin
  125. - #LyozienSwitch
  126. - Juperos Manager
  127. - Extra Story Patch
  128. - boss::boss_aru_monas
  129. - Koshei GlobalVar#admin
  130. - Morocc GlobalVar Admin::MoroccAdmin_sec
  131. - Morocc GlobalVar Admin::MoroccAdmin_moc
  132. - Morocc Invasion Manager (disabled)
  133. [ Other ]
  134. -------- Marriage --------
  135. - The King of Rune-Midgarts
  136. - Divorce Staff
  137. - Remarry Staff
  138. ------ Izlude Arena ------
  139. - log-on-aco#arena
  140. - acolink#arena
  141. - Arena Manager#arena
  142. - Reward Manager#arena
  143. - Picture Manager#arena
  144. - Live Broadcast#arena
  145. - #arenacontrol
  146. --------------------------
  147. - Monster Race Manager
  148. - Vote Globalvar Girl#yuno (disabled)
  149. - 2013questreset2#xmas (event, disabled)
  150. --------------------------
  151. - Mercenary Switch#Spear
  152. - Mercenary Switch#Bow
  153. - Mercenary Switch#Sword
  154. */