From 11e24e48f9e9016510c04c136c246fa939bb46b2 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 2 May 2020 06:07:50 -0300 Subject: Okay, this should fix the worse bugs --- npc/014-4/kamelot.txt | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to 'npc/014-4') 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; -- cgit v1.2.3-60-g2f50