diff options
author | Vincent Petithory <vincent.petithory@gmail.com> | 2012-09-24 21:11:33 +0200 |
---|---|---|
committer | Vincent Petithory <vincent.petithory@gmail.com> | 2012-12-17 19:55:26 +0100 |
commit | 32cbb82b32d4ccbc3b5090ca517ed74feb5c9b5f (patch) | |
tree | f960e08320c2bfec54a3220c16734befea0f606e /world/map/npc/051-3/reinforcements.txt | |
parent | a6910cd696eccbef6f056fb0f7f4d0f2b72a2ede (diff) | |
download | serverdata-32cbb82b32d4ccbc3b5090ca517ed74feb5c9b5f.tar.gz serverdata-32cbb82b32d4ccbc3b5090ca517ed74feb5c9b5f.tar.bz2 serverdata-32cbb82b32d4ccbc3b5090ca517ed74feb5c9b5f.tar.xz serverdata-32cbb82b32d4ccbc3b5090ca517ed74feb5c9b5f.zip |
Add Illia quest scripts. Update submodule pointer.
Diffstat (limited to 'world/map/npc/051-3/reinforcements.txt')
-rw-r--r-- | world/map/npc/051-3/reinforcements.txt | 85 |
1 files changed, 85 insertions, 0 deletions
diff --git a/world/map/npc/051-3/reinforcements.txt b/world/map/npc/051-3/reinforcements.txt new file mode 100644 index 00000000..91cfaf37 --- /dev/null +++ b/world/map/npc/051-3/reinforcements.txt @@ -0,0 +1,85 @@ +051-3.gat,47,30,0|script|#BndtRnfrcmtsTrigger|32767,2,3,{ + + set @step, 2; + if ($@illia_progress < @step) goto L_ShouldNotBeHere; + if ($@illia_level_2_progress == 2) goto L_CallReinforcements; + end; + +L_CallReinforcements: + donpcevent "Door::OnRnfrcmts"; + end; + +L_ShouldNotBeHere: + percentheal -100, 0; + end; +} + +051-3.gat,37,24,0|script|Door|127,{ + + set @step, 2; + if ($@illia_progress < @step) goto L_ShouldNotBeHere; + mes "Try open the door?"; + menu + "Yes", L_TryOpen, + "Do nothing", -; + close; + +L_ShouldNotBeHere: + percentheal -100, 0; + end; + +L_TryOpen: + if ($@illia_level_2_progress < 4) + goto L_KeyNotFound; + goto L_Warp; + end; + +L_KeyNotFound: + mes "You do not see a way to open this door."; + close; + +L_Warp: + mes "You place the key in the door and open the lock."; + warp "051-1.gat", 118, 55; + close; + +OnRnfrcmts: + set $@illia_level_2_progress, 3; + // Spawn 20 bandits + areamonster "051-3.gat", 29, 25, 48, 39, "", 1064, 18, "Door::onB"; + // Spawn 4 bandit lords + areamonster "051-3.gat", 29, 25, 48, 39, "", 1065, 3, "Door::onB"; + initnpctimer; + mapannounce "051-3.gat", "Bandit Lords: Do not let them escape!!" , 0; + areatimer "051-3.gat", 25, 20, 80, 85, 10, "Door::onDRnfrcmts"; + end; + +onB: + end; + +onDRnfrcmts: + message strcharinfo(0), "Oh no, reinforcements! We must kill them all!"; + end; + +OnTimer2000: + setnpctimer 0; + if ($@illia_level_2_progress != 3 || $@illia_progress != 2) + end; + if (mobcount("051-3.gat", "Door::onB") < 0) + goto L_OpenDoor; + end; + +L_OpenDoor: + set $@illia_level_2_progress, 4; + set $@illia_progress, 3; + set $@illia_max_time, $@illia_max_time + 900; + areatimer "051-3.gat", 25, 20, 80, 85, 10, "Door::onKeyFound"; + stopnpctimer; + setnpctimer 0; + end; + +onKeyFound: + message strcharinfo(0), "One of the defeated bandit lords had a door key attached to his belt."; + end; + +} |