diff options
Diffstat (limited to 'npc/001-1/doors.txt')
-rw-r--r-- | npc/001-1/doors.txt | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/npc/001-1/doors.txt b/npc/001-1/doors.txt new file mode 100644 index 000000000..31ca2b7df --- /dev/null +++ b/npc/001-1/doors.txt @@ -0,0 +1,57 @@ +// Evol scripts. +// Authors: +// 4144 +// Reid +// Description: +// Doors warp and animations in map 001-1 +// + +001-1,57,41,0 script #Warp20 NPC_HIDDEN,0,0,{ +OnTouch: + .@enora = getq(ArtisQuests_Enora); + + if (.@enora < 11) + { + narrator S_LAST_NEXT, + l("The door to the legion building is temporarily closed."); + } + else + { + warp "001-2-33", 34, 46; + } + + closedialog; + close; + +OnUnTouch: + doevent "#Door20::OnUnTouch"; +} + +001-1,57,41,0 script #Door20 NPC_ARTIS_DOOR,2,3,{ + close; + +OnTouch: + .@enora = getq(ArtisQuests_Enora); + if (.@enora < 11) + { + setfakecells 57, 41, 1; + end; + } + setfakecells 57, 41, 0; + doorTouch; + +OnUnTouch: + .@enora = getq(ArtisQuests_Enora); + if (.@enora < 11) + { + end; + } + doorUnTouch; + +OnTimer340: + doorTimer; + +OnInit: + doorInit; +} + |