diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-10-22 15:38:36 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-10-22 15:38:36 -0200 |
commit | 0e36ac187f5bb49b1bdad0b65663496ef15dc6b9 (patch) | |
tree | cbec9401186655fac08a9c791e2d1fd0953abf52 /npc/021-1/logic.txt | |
parent | bdfb1a35dee26170514e7acb3585d3ea5b788344 (diff) | |
download | serverdata-0e36ac187f5bb49b1bdad0b65663496ef15dc6b9.tar.gz serverdata-0e36ac187f5bb49b1bdad0b65663496ef15dc6b9.tar.bz2 serverdata-0e36ac187f5bb49b1bdad0b65663496ef15dc6b9.tar.xz serverdata-0e36ac187f5bb49b1bdad0b65663496ef15dc6b9.zip |
Improve switches
Diffstat (limited to 'npc/021-1/logic.txt')
-rw-r--r-- | npc/021-1/logic.txt | 7 |
1 files changed, 7 insertions, 0 deletions
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; |