summaryrefslogtreecommitdiff
path: root/npc/003-1
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-12 15:31:46 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-12 15:31:46 -0300
commit035f0c38e23c9cab9a7f57972fb062be0e4b8b97 (patch)
tree5a3179e1a1d358234f5f9ffd41ee6eb6c234e9c8 /npc/003-1
parent25202506530bdf201d322bccecb2d16fbff98327 (diff)
downloadserverdata-035f0c38e23c9cab9a7f57972fb062be0e4b8b97.tar.gz
serverdata-035f0c38e23c9cab9a7f57972fb062be0e4b8b97.tar.bz2
serverdata-035f0c38e23c9cab9a7f57972fb062be0e4b8b97.tar.xz
serverdata-035f0c38e23c9cab9a7f57972fb062be0e4b8b97.zip
Now Dausen's quest work... in theory, at least.
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 {