summaryrefslogtreecommitdiff
path: root/npc/functions/gm_island.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/gm_island.txt')
-rw-r--r--npc/functions/gm_island.txt71
1 files changed, 71 insertions, 0 deletions
diff --git a/npc/functions/gm_island.txt b/npc/functions/gm_island.txt
new file mode 100644
index 00000000..82fc0210
--- /dev/null
+++ b/npc/functions/gm_island.txt
@@ -0,0 +1,71 @@
+- script #GmConfig NPC32767,{
+ end;
+
+OnInit:
+ disablenpc "Gm Event#1";
+ disablenpc "Gm Event#2";
+ disablenpc "Gm Event#3";
+ end;
+}
+function script GmWarp {
+ warp "028-1", 110, 30;
+ return;
+}
+function script GmDebug {
+ mes "[GM Debug]";
+ mes "What do you want to do?";
+ menu
+ "Open Event Portals.", L_GmStart,
+ "Close Event Portals.", L_GmStop,
+ "Disguise.", L_Disguise;
+
+L_GmStart:
+ enablenpc "Gm Event#1";
+ enablenpc "Gm Event#2";
+ enablenpc "Gm Event#3";
+ return;
+
+L_GmStop:
+ disablenpc "Gm Event#1";
+ disablenpc "Gm Event#2";
+ disablenpc "Gm Event#3";
+ return;
+
+L_Disguise:
+ npcaction 9;
+ mes "[GM Debug - Disguise]";
+ mes "The Disguise function allows GMs to disguise themselves as mobs or npcs.";
+ mes "---";
+ mes "Mob IDs: [@@https://www.themanaworld.org/index.php/Monster_Reference|Monster Reference@@]";
+ mes "You can either logout or use id ##B0##b to reset.";
+ mes "---";
+ mes "Please input the mob ID:";
+ input @disguise_id;
+ if (@disguise_id < 1000 || @disguise_id > 32767)
+ goto L_ResetClass;
+ mes "Your disguise has been changed.";
+ if (Class <= 5)
+ @old_class = Class;
+ Class = @disguise_id;
+ mes "";
+ mes "For technical reasons, you are not able to see your own disguise, but other players will see it.";
+ return;
+
+L_ResetClass:
+ mes "Your appearance has been reset.";
+ Class = if_then_else(@old_class, @old_class, 1);
+ callfunc "fixHeadStyles";
+ return;
+}
+001-1,49,68,0 script Gm Event#1 NPC368,0,0,{
+ callfunc "GmWarp";
+ end;
+}
+009-1,46,30,0 script Gm Event#2 NPC368,0,0,{
+ callfunc "GmWarp";
+ end;
+}
+020-1,67,89,0 script Gm Event#3 NPC368,0,0,{
+ callfunc "GmWarp";
+ end;
+}