summaryrefslogtreecommitdiff
path: root/npc/003-1
diff options
context:
space:
mode:
Diffstat (limited to 'npc/003-1')
-rw-r--r--npc/003-1/lieutenantdausen.txt51
1 files changed, 51 insertions, 0 deletions
diff --git a/npc/003-1/lieutenantdausen.txt b/npc/003-1/lieutenantdausen.txt
index e5878df54..467c74fb1 100644
--- a/npc/003-1/lieutenantdausen.txt
+++ b/npc/003-1/lieutenantdausen.txt
@@ -449,6 +449,57 @@ OnInit:
end;
}
+// dausen_mobtutorial (killedrid)
+// updates dausen quest
+function script dausen_mobtutorial {
+ .@mobId=getarg(0, killedrid);
+ .@t = getq(TulimsharQuest_MobTutorial);
+ .@k = getq2(TulimsharQuest_MobTutorial);
+ .@v = 1;
+ .@upd=false;
+
+ switch (.@mobId) {
+ case Croc:
+ if (.@t == 1) {
+ setq2 TulimsharQuest_MobTutorial, .@k+.@v;
+ .@upd=true;
+ }
+ break;
+ case Blub:
+ case Duck:
+ if (.@t == 3) {
+ setq2 TulimsharQuest_MobTutorial, .@k+.@v;
+ .@upd=true;
+ }
+ break;
+ case DesertBandit:
+ case Sarracenus:
+ .@v=2;
+ case DesertLogHead:
+ if (.@t == 5) {
+ setq2 TulimsharQuest_MobTutorial, .@k+.@v;
+ .@upd=true;
+ }
+ break;
+ case BlackScorpion:
+ .@v=10;
+ case Snake:
+ if (.@mobId != BlackScorpion)
+ .@v=5;
+ case GiantMaggot:
+ if (.@t == 7) {
+ setq2 TulimsharQuest_MobTutorial, .@k+.@v;
+ .@upd=true;
+ }
+ break;
+ }
+ if (.@upd) {
+ if (.@k+.@v % 10 == 0)
+ dispbottom l("Dausen Quest - @@ @@ killed", .@k+.@v, strmobinfo(1, .@mobId));
+ }
+ return;
+}
+
// Render random guard answer after bringing him water
function script GuardsGratitude {