gm_npcs.txt 3.7 KB

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