From 9a5dbf071df9b07d2189f1ae7a7e6d268b2f0450 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 25 Apr 2020 02:06:50 -0300 Subject: Instance ID resets with server, so make it temporary anyway --- npc/014-4/kamelot.txt | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'npc/014-4') diff --git a/npc/014-4/kamelot.txt b/npc/014-4/kamelot.txt index 4c88c5206..700d52829 100644 --- a/npc/014-4/kamelot.txt +++ b/npc/014-4/kamelot.txt @@ -7,7 +7,7 @@ // Controls the weekly guild dungeon feature. // Variable structure: -// $KAMELOT_ID [ guild_id ] = instance id +// $@KAMELOT_ID [ guild_id ] = instance id // $KAMELOT_QUEST [ guild_id ] = quest status (bitmask) // 0 - Not started // 1 - Quest Assigned by Arthur (new players cannot enter anymore) @@ -29,7 +29,7 @@ // KamelotCleanup(guildid) function script KamelotCleanup { .@g=getarg(0); - //$KAMELOT_ID[.@g]=0; + //$@KAMELOT_ID[.@g]=0; $KAMELOT_QUEST[.@g]=0; $KAMELOT_KEYMASK[.@g]=0; return; @@ -65,7 +65,7 @@ OnTouch: } // Build instance if it doesn't exists or has been reallocated - if (instanceowner($KAMELOT_ID[.@g]) != .@g) { + if (instanceowner($@KAMELOT_ID[.@g]) != .@g) { debugmes "Creating Instance for guild %d", .@g; .@inst=instance_create("Kamelot@"+.@g, .@g, IOT_GUILD); if (.@inst < 0) @@ -84,11 +84,10 @@ OnTouch: instance_attachmap("042-11", .@inst, .@g, "042-11@"+.@g); instance_set_timeout(0, 0, .@inst); instance_init(.@inst); - $KAMELOT_ID[.@g] = .@inst; + $@KAMELOT_ID[.@g] = .@inst; } - // You can enter in every other stage - dispbottom l("Advised Raid Party: One Thief, one Mage"); + // You can enter in every other state if (is_admin()) warp "042-0@"+.@g, any(59, 60), 80; end; -- cgit v1.2.3-60-g2f50