diff options
-rw-r--r-- | npc/003-1/lieutenantdausen.txt | 51 | ||||
-rw-r--r-- | npc/functions/mobpoint.txt | 1 |
2 files changed, 52 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 { diff --git a/npc/functions/mobpoint.txt b/npc/functions/mobpoint.txt index d7a438d07..bca9c393a 100644 --- a/npc/functions/mobpoint.txt +++ b/npc/functions/mobpoint.txt @@ -51,6 +51,7 @@ OnNPCKillEvent: callfunc "mobhunter"; callfunc "SQuest_Hasan"; callfunc "SaggyMobCount"; + callfunc "dausen_mobtutorial"; killedrid=0; end; |