From 6efb97a3aa229315d7c927d876898c6d2863eabd Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 30 Apr 2020 00:26:59 -0300 Subject: This should warrant players to be arrested, finishing the jail as well. After this, players can go back and fight Razha (not advised!!) Or they can go forward and step on Kamelot Sewers for the first time... --- npc/042-3/jail.txt | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'npc/042-3/jail.txt') diff --git a/npc/042-3/jail.txt b/npc/042-3/jail.txt index 9c6f065b3..5108d459a 100644 --- a/npc/042-3/jail.txt +++ b/npc/042-3/jail.txt @@ -16,18 +16,22 @@ OnKillSlime: if (@lockpicks) end; if (rand2(10000) > 1000) { - getmapxy(.@m$, .@x, .@y, 0); - sleep2(1800); - .@mob=monster(.@m$, .@x, .@y, strmobinfo(1, CopperSlime), CopperSlime, 1, .@label$); - // This should wipe the monster experience value - setunitdata(.@mob, UDT_LEVEL, 1); - end; + goto OnFirstSlime; } @lockpicks=true; getitem Lockpicks, 1; getitem TreasureKey, 1; end; +OnFirstSlime: + getmapxy(.@m$, .@x, .@y, 0); + sleep2(1800); + .@mob=monster(.@m$, .@x, .@y, strmobinfo(1, CopperSlime), CopperSlime, 1, .@label$); + // This should wipe the monster experience value + setunitdata(.@mob, UDT_LEVEL, 1); + end; + + // Spawn Siege Towers OnInstanceInit: .@m$=instance_mapname(.map$); -- cgit v1.2.3-60-g2f50