diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-04-25 02:06:50 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-04-25 02:06:50 -0300 |
commit | 9a5dbf071df9b07d2189f1ae7a7e6d268b2f0450 (patch) | |
tree | 06579cb267fe379aeb4259a41cd29639392d973a /npc/014-4/kamelot.txt | |
parent | 4ec8af5bc61389b677b01a7f5db6addc6b2c5897 (diff) | |
download | serverdata-9a5dbf071df9b07d2189f1ae7a7e6d268b2f0450.tar.gz serverdata-9a5dbf071df9b07d2189f1ae7a7e6d268b2f0450.tar.bz2 serverdata-9a5dbf071df9b07d2189f1ae7a7e6d268b2f0450.tar.xz serverdata-9a5dbf071df9b07d2189f1ae7a7e6d268b2f0450.zip |
Instance ID resets with server, so make it temporary anyway
Diffstat (limited to 'npc/014-4/kamelot.txt')
-rw-r--r-- | npc/014-4/kamelot.txt | 11 |
1 files changed, 5 insertions, 6 deletions
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; |