summaryrefslogtreecommitdiff
path: root/npc/018-2-1/dustman.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/018-2-1/dustman.txt')
-rw-r--r--npc/018-2-1/dustman.txt98
1 files changed, 60 insertions, 38 deletions
diff --git a/npc/018-2-1/dustman.txt b/npc/018-2-1/dustman.txt
index c6b24dcf7..455aedd9c 100644
--- a/npc/018-2-1/dustman.txt
+++ b/npc/018-2-1/dustman.txt
@@ -93,6 +93,7 @@
L_COD:
mes "";
+ // First time you're hearing about?
if (BaseLevel >= 50 && .@cod < 1) {
mesn;
mesq l("Hey, do you know the ##BCall Of Dusty##b event?");
@@ -104,11 +105,16 @@ L_COD:
getitem BottledDust, 1;
}
setq LoFQuest_COD, 1;
+ goto L_InformationCOD;
}
+
+ // Begin here
mesn;
mesq l("Just @@ ago, thieves stole Pihro & Pyndragon weapons.", FuzzyTime(1542570030));
next;
- if (BaseLevel >= 50 && .@cod < 2) {
+
+ // Handle initial message
+ if (BaseLevel >= 50) {
mesn;
mesq l("Pyndragon said he'll craft a @@ to whoever reduces them to dust. Interested?", getitemlink(Dustynator)); // BottledDust, Dustynator
mesc l("Note: Dustynator is a high level weapon. You might not have enough level to use it yet.");
@@ -118,53 +124,65 @@ L_COD:
mesq l("It was a real problem, threatening them to go out of business. I think they are trying to recover the lost weapons.");
mesc l("Attain level 50 to try this quest.");
close;
- } else {
- mesn;
- mesq l("You should kill them and collect @@ to obtain the @@.", getitemlink(BottledDust), getitemlink(Dustynator));
- mesc l("Note: Killing enemies there with the Dustynator grants more dusty in a bottle.");
- next;
}
+L_SkipIntro:
mes "";
- // TODO check if active
+ // Is the event currently active? Or is it exchange time?
+ if (.state == 0) {
+ mesn;
+ mesq l("The event starts hourly, when the minute clock hits zero. I'll tell everyone on this room when it starts and ends.");
+ close;
+ }
+
+ // Do you want to participate?
if (askyesno() == ASK_YES) {
mes "";
mesn;
mesq l("Do you need a refresher of the rules?");
if (askyesno() == ASK_YES) {
- mes "";
- mesn;
- mesc l("Call Of Dusty is a timed event quest. It begins hourly, when the minute clock marks zero.");
- mesc l("When the boss is defeated, or the minute clock marks fifteen, event ends.");
- next;
- mesn;
- mesc l("This is a @@, meaning only the victor party will receive the great prize.", b(l("Party Quest")));
- mesc l("You will get @@ which can then be exchanged for items once CoD event quest ends.");
- next;
- mesn;
- mesc l("You need be at minimum level 50 to participate. It is PVP, so watch out!");
- mesc l("The first stage is on the desert canyons. You must give a full circle on the canyon in 90 seconds.");
- mesc l("The second stage is in the first cave to northwest you can find.");
- // The full circle have about 268 tiles in distance. You have the needed time to do 2.2 circles in the most efficient fashion.
- // This means you have a time worth of 590 tiles, at 150ms, granting you 90 seconds to do this quest. (everything rounded up)
- next;
- mesn;
- mesc l("Once inside the BOSS Cave, you get a five minutes time limit to slay the boss with your party.");
- mesc l("@@. PK, however, is allowed!", b(l("Only the party from the MVP will get the reward.")));
- next;
- mesc l("The MVP is the player who did more damage to the boss.");
- mesc l("The title is transferred when the MVP is killed (either in PVP or by the boss), or when time runs out.");
- next;
- mesn;
- mesc l("The boss can blind players. Blind will reduce hit rate and evasion in 25%.");
- mesc l("Form the strongest party and win! Remember that if you don't kill the boss, you'll never win!");
- next;
+ goto L_InformationCOD;
}
- mes "";
- mesc l("ERROR: NYI: Not Yet Implemented"), 1;
+ closeclientdialog;
+ @COD_CHECKPOINT=0;
+ warp "001-10", rand(163,171), rand(119,124);
+ addtimer(90000,"#COD_BossRoomCheck::OnTimeDefeat");
+ dispbottom l("Good luck!");
+ close;
}
close;
+// Information about COD
+L_InformationCOD:
+ mes "";
+ mesn;
+ mesc l("Call Of Dusty is a timed event quest. It begins hourly, when the minute clock marks zero.");
+ mesc l("When the boss is defeated, or the minute clock marks fifteen, event ends.");
+ next;
+ mesn;
+ mesc l("This is a @@, meaning only the victor party will receive the great prize.", b(l("Party Quest")));
+ mesc l("You will get @@ which can then be exchanged for items once CoD event quest ends.");
+ next;
+ mesn;
+ mesc l("You need be at minimum level 50 to participate. It is PVP, so watch out!");
+ mesc l("The first stage is on the desert canyons. You must give a full circle on the canyon in 90 seconds.");
+ mesc l("The second stage is in the first cave to northwest you can find.");
+ // The full circle have about 268 tiles in distance. You have the needed time to do 2.2 circles in the most efficient fashion.
+ // This means you have a time worth of 590 tiles, at 150ms, granting you 90 seconds to do this quest. (everything rounded up)
+ next;
+ mesn;
+ mesc l("Once inside the BOSS Cave, you get a five minutes time limit to slay the boss with your party.");
+ mesc l("@@. PK, however, is allowed!", b(l("Only the party from the MVP will get the reward.")));
+ next;
+ mesc l("The MVP is the player who did more damage to the boss.");
+ mesc l("The title is transferred when the MVP is killed (either in PVP or by the boss), or when time runs out.");
+ next;
+ mesn;
+ mesc l("The boss can blind players. Blind will reduce hit rate and evasion in 25%.");
+ mesc l("Form the strongest party and win! Remember that if you don't kill the boss, you'll never win!");
+ next;
+ goto L_SkipIntro;
+
OnInit:
.sex=G_MALE;
.distance=5;
@@ -173,15 +191,19 @@ OnInit:
OnMinute00:
.state=1;
- // TODO: spawn
+ donpcevent("#COD_BossManager::OnEventStart");
+ npctalk l("Call Of Dusty: Event Start!");
end;
+OnCoDEnd:
OnMinute15:
.state=0;
+ npctalk l("Call Of Dusty: Event End!");
end;
OnMinute30:
- debugmes "CoD Cleanup";
+ .state=0; // fail-safe
+ donpcevent("#COD_BossManager::OnCleanUp");
end;
}