diff options
author | Jesusaves <cpntb1@ymail.com> | 2019-06-12 15:31:46 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2019-06-12 15:31:46 -0300 |
commit | 035f0c38e23c9cab9a7f57972fb062be0e4b8b97 (patch) | |
tree | 5a3179e1a1d358234f5f9ffd41ee6eb6c234e9c8 | |
parent | 25202506530bdf201d322bccecb2d16fbff98327 (diff) | |
download | serverdata-035f0c38e23c9cab9a7f57972fb062be0e4b8b97.tar.gz serverdata-035f0c38e23c9cab9a7f57972fb062be0e4b8b97.tar.bz2 serverdata-035f0c38e23c9cab9a7f57972fb062be0e4b8b97.tar.xz serverdata-035f0c38e23c9cab9a7f57972fb062be0e4b8b97.zip |
Now Dausen's quest work... in theory, at least.
-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; |