summaryrefslogtreecommitdiff
path: root/npc/002-1/dan.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/002-1/dan.txt')
-rw-r--r--npc/002-1/dan.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/npc/002-1/dan.txt b/npc/002-1/dan.txt
index 179deab5a..15dddf6e0 100644
--- a/npc/002-1/dan.txt
+++ b/npc/002-1/dan.txt
@@ -89,6 +89,8 @@ OnInit:
// TODO this code below is bad and should be entirely rewritten
002-1,0,0,0 script PiouSpwn NPC_HIDDEN,{
function DanCheck {
+ if (getq(ShipQuests_Dan) != 1)
+ end;
.@t=getq2(ShipQuests_Dan);
if (.@t+1 >= 12) setq ShipQuests_Dan, 2, 0;
if (.@t+1 < 12) setq ShipQuests_Dan, 1, .@t+1;
@@ -121,7 +123,7 @@ OnRespawnPiou4:
OnRespawnPiou5:
if (getq(ShipQuests_Dan) == 1) DanCheck();
sleep 60000;
- areamonster(instance_mapname("002-3"), 31, 26, 40, 31, "Piou", 1002, 1, instance_npcname("PiouSpwn")+"::OnRespawnPiou4");
+ areamonster(instance_mapname("002-3"), 31, 26, 40, 31, "Piou", 1002, 1, instance_npcname("PiouSpwn")+"::OnRespawnPiou5");
end;
OnInstanceInit: