diff options
author | Saulc <lucashelaine14@gmail.com> | 2018-01-13 20:50:42 +0100 |
---|---|---|
committer | Saulc <lucashelaine14@gmail.com> | 2018-01-13 20:50:42 +0100 |
commit | 20df2abc1aca00d6aa5dc78347133890f36b32f3 (patch) | |
tree | 4ad4a8bb8b0605473a702e314799a4626347721a /npc/001-2-34/doors.txt | |
download | serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.tar.gz serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.tar.bz2 serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.tar.xz serverdata-20df2abc1aca00d6aa5dc78347133890f36b32f3.zip |
Initial commit
Diffstat (limited to 'npc/001-2-34/doors.txt')
-rw-r--r-- | npc/001-2-34/doors.txt | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/npc/001-2-34/doors.txt b/npc/001-2-34/doors.txt new file mode 100644 index 000000000..3e4fef7bd --- /dev/null +++ b/npc/001-2-34/doors.txt @@ -0,0 +1,29 @@ +// Evol scripts. +// Author: +// Reid +// Description: +// Doors NPCs. + +001-2-34,23,29,0 script ToTrainingRoom#001-2-34 NPC_HIDDEN,0,0,{ + +OnTouch: + if ((getmapusers($@MAP_NAME$) == 0) && ($@FightingIsActive > 0)) + { + set $@FightingIsActive, 0; + killmonsterall "001-2-36"; + } + + if (mobcount("001-2-36","all") > 0 && $@FightingIsActive > 0) + { + narrator + l("You hear some sound behind the door."), + l("Somebody is probably training, better wait for him to finish."); + } + else + { + warp "001-2-36", 36, 30; + } + + closedialog; + close; +} |