summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjesusalva <cpntb1@ymail.com>2018-03-04 00:55:05 -0300
committerjesusalva <cpntb1@ymail.com>2018-03-04 00:55:05 -0300
commitfd5688627aee15fc3604563587c3eb50af4a67d3 (patch)
tree59b44de56bec2106738f4e75ff3442100d2b4c00
parent553677043e690040271b59d77002bdf4de31f65c (diff)
downloadserverdata-fd5688627aee15fc3604563587c3eb50af4a67d3.tar.gz
serverdata-fd5688627aee15fc3604563587c3eb50af4a67d3.tar.bz2
serverdata-fd5688627aee15fc3604563587c3eb50af4a67d3.tar.xz
serverdata-fd5688627aee15fc3604563587c3eb50af4a67d3.zip
With this, Dan quest is done, but Saulc still needs to add items
-rw-r--r--npc/002-1/dan.txt70
1 files changed, 69 insertions, 1 deletions
diff --git a/npc/002-1/dan.txt b/npc/002-1/dan.txt
index cb1616da7..395b41e7e 100644
--- a/npc/002-1/dan.txt
+++ b/npc/002-1/dan.txt
@@ -10,32 +10,100 @@
002-1,32,31,0 script Dan#002-1 NPC_REDY_MAN,{
.@q=getq(ShipQuests_Dan);
+ if (.@q == 1) goto L_Report;
+ if (.@q == 2) goto L_Reward;
+ if (.@q == 3) goto L_Finished;
+
mesn;
mesq l("You see these pious around us?");
next;
- mesq l("It seems that we are close to an island, we should take a look at the upper level.");
+ mesq l("They're scary, don't you think so?");
+ next;
+ menu
+ l("Yeah, they are."), -,
+ l("I am not afraid of Pious."), L_Quest;
+
+ mes "";
+ mesn;
+ mesq l("I knew someone would agree with me!");
+ close;
+
+L_Quest:
+ mes "";
+ mesn;
+ mesq l("Then could you perhaps kill 12 @@ for me?!", getmonsterlink(Piou));
+ next;
+ menu
+ l("They're too strong for me!"), -,
+ l("Yes, of course. Without a sweat."), L_Continue;
+ mes "";
+ mesn;
+ mesq l("Oh, please. They're weaker than Maggots. They will only pose a threat if you're unarmed.");
close;
+L_Continue:
+ mes "";
+ mesn;
+ mesq l("I am counting on you!");
+ setq ShipQuests_Dan, 1, 0;
+ close;
+
+L_Report:
+ mesn;
+ mesq l("You've killed @@/12 @@. Get rid of them!", getq2(ShipQuests_Dan),getmonsterlink(Piou));
+ close;
+
+L_Reward:
+ mesn;
+ mesq l("Woohoo, thank you! Maybe now they'll leave me alone!");
+ next;
+ mesn;
+ mesq l("Here, take this pair of boots as a reward!");
+ inventoryplace CreasedGloves, 1;
+ getitem CreasedGloves, 1;
+ setq ShipQuests_Dan, 3, 0;
+ close;
+
+L_Finished:
+ mesn;
+ mesq l("It is no use... We are too close to a island, they will keep invading the ship...");
+ next;
+ mesn;
+ mes l("(shivering) \"Ah, how I am afraid of pious!\"");
+ close;
+
+
OnInit:
.sex = G_MALE;
.distance = 5;
end;
}
+// TODO this code below is bad and should be entirely rewritten
002-1,0,0,0 script PiouSpwn NPC_HIDDEN,{
+ function DanCheck {
+ .@t=getq2(ShipQuests_Dan);
+ if (.@t+1 >= 12) setq ShipQuests_Dan, 2, 0;
+ if (.@t+1 < 12) setq ShipQuests_Dan, 1, .@t+1;
+ }
+
OnRespawnPiou1:
+ if (getq(ShipQuests_Dan) == 1) DanCheck();
sleep 60000;
areamonster(instance_mapname("002-1"), 52, 32, 73, 41, "Piou", 1002, 1, instance_npcname("PiouSpwn")+"::OnRespawnPiou1");
end;
OnRespawnPiou2:
+ if (getq(ShipQuests_Dan) == 1) DanCheck();
sleep 60000;
areamonster(instance_mapname("002-1"), 52, 32, 73, 41, "Piou", 1002, 1, instance_npcname("PiouSpwn")+"::OnRespawnPiou2");
end;
OnRespawnPiou3:
+ if (getq(ShipQuests_Dan) == 1) DanCheck();
sleep 60000;
areamonster(instance_mapname("002-1"), 52, 32, 73, 41, "Piou", 1002, 1, instance_npcname("PiouSpwn")+"::OnRespawnPiou3");
end;
OnRespawnPiou4:
+ if (getq(ShipQuests_Dan) == 1) DanCheck();
sleep 60000;
areamonster(instance_mapname("002-1"), 52, 32, 73, 41, "Piou", 1002, 1, instance_npcname("PiouSpwn")+"::OnRespawnPiou4");
end;