From 0e36ac187f5bb49b1bdad0b65663496ef15dc6b9 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Mon, 22 Oct 2018 15:38:36 -0200 Subject: Improve switches --- npc/021-1/logic.txt | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'npc/021-1') diff --git a/npc/021-1/logic.txt b/npc/021-1/logic.txt index 3195be1d9..335cf6bcf 100644 --- a/npc/021-1/logic.txt +++ b/npc/021-1/logic.txt @@ -92,6 +92,13 @@ OnTouch: specialeffect(27); setnpcdisplay .name$, NPC_SWITCH_ONLINE; initnpctimer; + .@r=rand(0,100); + getmapxy(.@m$, .@x, .@y,0); + if (.@r < 80) + monster .@m$, .@x, .@y, "Yeti", Yeti, 1; + else if (.@r > 99) + makeitem(Candy, 1, .@m$, .@x, .@y); + npctalk l("Automatic disarm in: @@", FuzzyTime(.lifetime)); closedialog; } close; -- cgit v1.2.3-60-g2f50