summaryrefslogtreecommitdiff
path: root/npc/042-0
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2020-04-28 16:06:49 -0300
committerJesusaves <cpntb1@ymail.com>2020-04-28 16:06:49 -0300
commit66b30629b30b03bf8ae94e627d98740234e5a819 (patch)
tree97db7c300b24d04373c0cc1a21eac210cc6cc017 /npc/042-0
parentafe5b865e4efa38d62d23cf66c1d8d765fe7b61f (diff)
downloadserverdata-66b30629b30b03bf8ae94e627d98740234e5a819.tar.gz
serverdata-66b30629b30b03bf8ae94e627d98740234e5a819.tar.bz2
serverdata-66b30629b30b03bf8ae94e627d98740234e5a819.tar.xz
serverdata-66b30629b30b03bf8ae94e627d98740234e5a819.zip
Event timers firing
Diffstat (limited to 'npc/042-0')
-rw-r--r--npc/042-0/arthur.txt13
1 files changed, 11 insertions, 2 deletions
diff --git a/npc/042-0/arthur.txt b/npc/042-0/arthur.txt
index 30e00890e..878502077 100644
--- a/npc/042-0/arthur.txt
+++ b/npc/042-0/arthur.txt
@@ -178,10 +178,19 @@ OnInstanceInit:
OnTouch:
.@g=getcharid(2);
- if ($KAMELOT_QUEST[.@g] & 1)
+ if ($KAMELOT_QUEST[.@g] & 1) {
warp "042-1@"+.@g, 55, 99;
- else
+ } else {
dispbottom l("The door is locked.");
+ end;
+ }
+
+ // Maybe event must be fired
+ if (!($KAMELOT_KEYMASK[.@g] & 16)) {
+ .@label$=instance_npcname("#KDoor0421", $@KAMELOT_ID[.@g])+"::OnArrival";
+ deltimer .@label$;
+ addtimer 15000, .@label$;
+ }
end;
}