123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- //===== rAthena Script =======================================
- //= GM Management NPCs
- //===== By: ==================================================
- //= Euphy
- //===== Current Version: =====================================
- //= 1.0
- //===== Compatible With: =====================================
- //= rAthena Project
- //===== Description: =========================================
- //= Controls the official GM management NPCs in certain scripts.
- //===== Additional Comments: =================================
- //= 1.0 First version.
- //============================================================
- // callfunc("F_GM_NPC"{,<password>,<0:int | 1:str>{,<min>,<max>}})
- function script F_GM_NPC {
- // To disable all GM NPCs, uncomment the line below.
- //end;
- // To set a minimum GM level to access the NPCs, edit the line below.
- if (getgmlevel() < 99) {
- // Log the event.
- getmapxy(.@map$,.@x,.@y,BL_NPC);
- logmes strcharinfo(0)+" attempted to access GM NPC "+strnpcinfo(0)+" ("+.@map$+","+.@x+","+.@y+").";
- end;
- }
- if (!getargcount()) return;
- // To disable password inputs, uncomment the line below.
- //return 1;
- // Password return values:
- // 1: correct input
- // 0: incorrect input
- // -1: zero/cancel (integer only)
- // -2: out of bounds (integer only)
- if (getarg(1) == 0) {
- // Integer password
- if (getarg(3,0)) {
- .@error = input(.@input,getarg(2),getarg(3));
- if (.@error)
- return -2;
- } else
- input .@input;
- if (.@input == 0)
- return -1;
- else
- return (.@input == getarg(0))?1:0;
- } else {
- // String password
- input .@inputstr$;
- return (.@inputstr$ == getarg(0))?1:0;
- }
- }
- /*
- List of GM Management NPCs (incomplete)
- --------------------------
- [ Battleground ]
- - Switch#batgnd
- - Release all#b01
- - Release all#b02
- - Release all#a01
- - Release all#a02
- [ Guild-related ]
- - Event controller#aru_gd
- - Event controller#sch_gd
- - Festival Manager#gq_fes0
- - Festival Manager#gq_fes2
- - Godly Item Quests#god
- - Golbal var
- - Investment_total#fund00 (RE)
- [ Instances ]
- ------ Endless Tower -----
- - #102Administrator Mode
- - Purification Stone#et2
- - #Manager Mode1
- - #Manager Mode2
- - #Manager Mode3
- - #Manager Mode4
- - #Manager Mode5
- --------------------------
- - Nidhoggur Manager
- - Purification Admin#nyd2
- - Bakonawa's Rage (RE)
- - Bangungot Gate (RE)
- - Horror Toy Factory (RE)
- - Faceworm's Nest (RE)
- - Central Laboratory (RE)
- - Morse's Cave (RE)
- [ Job-related ]
- ----- 3rd Class (RE) -----
- - control#arch
- - #GMhelper01_gc
- - #GMhelper02_gc
- - Worker#job_ranger
- - R.Knight Job Manager
- - #renshucheck
- - sorcereryal
- - Button Girl#wl
- - Button Girl#sura
- - Battle Test Control#ko
- - Guide#ko_helper
- - Admin1
- --------------------------
- - Soul Linker Var
- - 1st Job Quest Reset
- - Job Repair (RE)
- [ Quest ]
- --------- Renewal --------
- - 13.3 Related Reset
- - Scaraba Dungeon Entrance
- - Assistant#para_suvquest
- - Guidance for quest#ml
- - Initializing Mora Sanjo
- - Theore Set Guid
- - Field Bush Switch
- - Bakonawa Intro Helper
- - Pintados Manager#pin
- - #pa0829Reactor11
- - New Oz Image#1
- - Professor Aide#worm
- --------------------------
- - Allied Manager#gm
- - #timer_alba01
- - Translator Preparation#1
- - ep13_nd2f_mng
- - Factory Quest Test
- - boss::lght_boss_admin
- - #LyozienSwitch
- - Juperos Manager
- - Extra Story Patch
- - boss::boss_aru_monas
- - Koshei GlobalVar#admin
- - Morocc GlobalVar Admin::MoroccAdmin_sec
- - Morocc GlobalVar Admin::MoroccAdmin_moc
- - Morocc Invasion Manager (disabled)
- [ Other ]
- -------- Marriage --------
- - The King of Rune-Midgarts
- - Divorce Staff
- - Remarry Staff
- ------ Izlude Arena ------
- - log-on-aco#arena
- - acolink#arena
- - Arena Manager#arena
- - Reward Manager#arena
- - Picture Manager#arena
- - Live Broadcast#arena
- - #arenacontrol
- --------------------------
- - Monster Race Manager
- - Vote Globalvar Girl#yuno (disabled)
- - 2013questreset2#xmas (event, disabled)
- --------------------------
- - Mercenary Switch#Spear
- - Mercenary Switch#Bow
- - Mercenary Switch#Sword
- */
|