summaryrefslogtreecommitdiff
path: root/npc/003-13/arnea.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-04-03 10:24:42 -0300
committerJesusaves <cpntb1@ymail.com>2018-04-03 10:24:42 -0300
commitefdd8d16ea3989efd07fc635a3ddef99722d60d7 (patch)
tree6afcaf4a8f27951253e7f5e27e359d7c3210185a /npc/003-13/arnea.txt
parenta088b12852a87d6b10d5457f2e6f9f10865c4f39 (diff)
downloadserverdata-efdd8d16ea3989efd07fc635a3ddef99722d60d7.tar.gz
serverdata-efdd8d16ea3989efd07fc635a3ddef99722d60d7.tar.bz2
serverdata-efdd8d16ea3989efd07fc635a3ddef99722d60d7.tar.xz
serverdata-efdd8d16ea3989efd07fc635a3ddef99722d60d7.zip
This should be PVP Duel Arena (well, not as we wanted it, but that can work)
Diffstat (limited to 'npc/003-13/arnea.txt')
-rw-r--r--npc/003-13/arnea.txt82
1 files changed, 19 insertions, 63 deletions
diff --git a/npc/003-13/arnea.txt b/npc/003-13/arnea.txt
index 9b2329a4e..f04972aa5 100644
--- a/npc/003-13/arnea.txt
+++ b/npc/003-13/arnea.txt
@@ -6,59 +6,40 @@
// Arena for Duels and PVP (temporary map)
003-13,29,29,0 script Arnea#003-13 NPC_ELF_F,{
- // FIXIT
- if (!is_staff()) {
- hello;
- end;
+ if (is_staff()) {
+ mes "npc name: " + .name$;
+ mes "npc ext name: " + .extname$;
+ mes "npc id: " + .id;
+ mes "npc parent id: " + .parent;
+ mes "npc src id: " + .srcId;
+ mes "char id 3: " + getcharid(3);
+ mes "instance id: " + instance_id();
+ mes "Map ID: " + instance_mapname("003-13");
}
-
- mes "npc name: " + .name$;
- mes "npc ext name: " + .extname$;
- mes "npc id: " + .id;
- mes "npc parent id: " + .parent;
- mes "npc src id: " + .srcId;
- mes "char id 3: " + getcharid(3);
- mes "instance id: " + instance_id();
- mes "Map ID: " + instance_mapname("003-13");
- if (instance_id() >= 0)
- {
- mes "npc in instance named: " + instance_npcname(.name$);
- next;
+ if (instance_id() >= 0) {
goto L_Manage;
- }
- else
- {
+ } else {
+ // Non staff and on 003-13? That's a bug!
+ if (!is_staff()) {
+ atcommand "@request Hey hey hey, player found in 003-13 - regular map! Report this to Jesusalva at once!";
+ warp "Save", 0, 0;
+ close;
+ }
mes "npc not in instance";
}
+
close;
L_Manage:
mesn;
switch (select(
"warp back",
- rif(getcharid(3) == $@ARENA_INSTANCES[replacestr(instance_mapname("003-13"), "003-13@a", "")] || is_gm(),"delete"),
"cancel"))
{
case 1:
- warp "003-5", 33, 40;
+ warp "003-10", 33, 40;
break;
case 2:
- if (instance_id() < 0)
- {
- mes "Error: not in an instance";
- break;
- }
- .@ArenaToFree=replacestr(instance_mapname("003-13"), "003-13@a", "");
- //mes .@ArenaToFree;
- //next;
- $@ARENA_INSTANCES[.@ArenaToFree]=-1;
- warp "003-5", 33, 40;
- DESTROY_ME=1;
- DESTROY_MY_ID=instance_id();
- //instance_detachmap("003-13");
- //instance_destroy(instance_id()); // TODO FIXME
- break;
- case 3:
break;
}
close;
@@ -73,10 +54,6 @@ OnInit:
.sex = G_FEMALE;
.distance = 9;
- // test instance id
-
- // Temporary fix
- disablenpc "Arnea#003-13";
end;
OnInstanceInit:
@@ -91,24 +68,3 @@ OnInstanceInit:
}
-
-/*
- .@ID=getcharid(0);
- .@MUNDANE_INSTID = instance_create("001-3-0@a"+(.@ID), 0, IOT_NONE);
- //debugmes "You are "+str(.@ID);
-
- //if (.@MUNDANE_INSTID < 0) debugmes "Error: No instance ID";
- //debugmes "new instance id: " + str(.@MUNDANE_INSTID);
-
- .@instanceMapName$ = instance_attachmap("001-3-0", .@MUNDANE_INSTID, 0, str(.@ID));
-
- //if (.@instanceMapName$ == "") debugmes "Error: Map 001-3-0 X failed";
- //debugmes "Created map: "+ str(.@instanceMapName$);
-
- instance_set_timeout(300000, 300000, .@MUNDANE_INSTID);
- instance_init(.@MUNDANE_INSTID);
-
- warp str(.@ID), 161,59;
- close;
-
-*/