diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-05-02 06:07:50 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-05-02 06:07:50 -0300 |
commit | 11e24e48f9e9016510c04c136c246fa939bb46b2 (patch) | |
tree | ae90c0764ae1fce3ab5b3960a8806c2be676d38f /npc/014-4/kamelot.txt | |
parent | c06fef53740752129f66b9a243503f79d31845ad (diff) | |
download | serverdata-11e24e48f9e9016510c04c136c246fa939bb46b2.tar.gz serverdata-11e24e48f9e9016510c04c136c246fa939bb46b2.tar.bz2 serverdata-11e24e48f9e9016510c04c136c246fa939bb46b2.tar.xz serverdata-11e24e48f9e9016510c04c136c246fa939bb46b2.zip |
Okay, this should fix the worse bugs
Diffstat (limited to 'npc/014-4/kamelot.txt')
-rw-r--r-- | npc/014-4/kamelot.txt | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/npc/014-4/kamelot.txt b/npc/014-4/kamelot.txt index 254c83bb2..404df254a 100644 --- a/npc/014-4/kamelot.txt +++ b/npc/014-4/kamelot.txt @@ -97,7 +97,7 @@ OnTouch: instance_attachmap("042-9", .@inst, .@g, "042-9@"+.@g); instance_attachmap("042-10", .@inst, .@g, "042-10@"+.@g); instance_attachmap("042-11", .@inst, .@g, "042-11@"+.@g); - instance_set_timeout(0, 0, .@inst); + instance_set_timeout(0, 0, .@inst); // FIXME: Bad Idea? instance_init(.@inst); $@KAMELOT_ID[.@g] = .@inst; } @@ -138,7 +138,8 @@ OnDebug: l("Warp - Jump to Basement"), l("Warp - Jump to Jail"), l("Warp - Jump to Sewer Entrance"), - l("Warp - Jump to Cave Exit"); + l("Warp - Jump to Cave Exit"), + l("Warp - Arrest me!"); mes ""; switch (@menu) { case 2: @@ -183,6 +184,24 @@ OnDebug: warp "042-4@"+.@g, 60, 67; break; case 15: warp "042-10@"+.@g, 95, 52; break; + case 16: + .@t$="042-3@"+.@g; + .@n$=instance_npcname("#KSlimeSpawn", $KAMELOT_ID[.@g]); + setarray .@x, 33, 84, 41, 74, 36, 57, 79, 43, 24, 86, 59, 38; + setarray .@y, 135, 127, 119, 107, 96, 84, 63, 67, 67, 22, 49, 27; + specialeffect(FX_HIT, AREA, getcharid(3)); + .@v = (rand2(12) % 12); + .@r=attachrid(getcharid(3)); + if (.@r) { + warp .@t$, .@x[.@v], .@y[.@v]; + if (!countitem(Lockpicks)) + addtimer 700, .@n$+"::OnFirstSlime"; + setpcblock(255, false); + } else { + unitwarp(getcharid(3), .@t$, .@x[.@v], .@y[.@v]); // And good luck D: + debugmes "FATAL: Could not attach: %d", getcharid(3); + } + break; } close; |