From 035f0c38e23c9cab9a7f57972fb062be0e4b8b97 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 12 Jun 2019 15:31:46 -0300 Subject: Now Dausen's quest work... in theory, at least. --- npc/003-1/lieutenantdausen.txt | 51 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) (limited to 'npc/003-1') 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 { -- cgit v1.2.3-60-g2f50