summaryrefslogtreecommitdiff
path: root/npc/functions
diff options
context:
space:
mode:
authoromatt <m.vuoso@laposte.net>2016-08-06 09:51:20 +0200
committeromatt <m.vuoso@laposte.net>2016-08-06 09:51:20 +0200
commit55ffd25d8b7ae36a3b601f3e60bc140d603a7b83 (patch)
treebefab8d73f7449419a976947ac22c09a383624af /npc/functions
parentc811ec5446242bcb2ecb60e0c454dc0a2419b60d (diff)
downloadserverdata-55ffd25d8b7ae36a3b601f3e60bc140d603a7b83.tar.gz
serverdata-55ffd25d8b7ae36a3b601f3e60bc140d603a7b83.tar.bz2
serverdata-55ffd25d8b7ae36a3b601f3e60bc140d603a7b83.tar.xz
serverdata-55ffd25d8b7ae36a3b601f3e60bc140d603a7b83.zip
change fishing pull_max, add timer; change label name in wateranimation
Diffstat (limited to 'npc/functions')
-rw-r--r--npc/functions/fishing.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/npc/functions/fishing.txt b/npc/functions/fishing.txt
index c2b4fda2..49ca3727 100644
--- a/npc/functions/fishing.txt
+++ b/npc/functions/fishing.txt
@@ -38,7 +38,7 @@ function script fishing {
.@wait_time_min = 4000;
.@wait_time_max = 18000;
- .@pull_rand_max = 500;
+ .@pull_rand_max = 800;
.@fish_id = CommonCarp;
.@rare_fish_chance = 25;
@@ -57,11 +57,14 @@ function script fishing {
setnpcdir getarg(0), DOWN;
deltimer getarg(0) + "::OnBiteBait";
+ deltimer getarg(0) + "::OnRemoveBait";
narrator l("You pulled too soon and lost the bait.");
close;
case LEFT:
@occupy = false;
+ deltimer getarg(0) + "::OnRemoveBait";
+
setnpcdir getarg(0), DOWN;
getmapxy (.@mapbis$, .@xbis, .@ybis, 0);
@@ -170,6 +173,7 @@ OnChooseBait:
.@delay = rand(.@wait_time_min, .@wait_time_max);
addtimer .@delay, getarg(0) + "::OnBiteBait";
+ addtimer (.@delay + 5000), getarg(0) + "::OnRemoveBait";
close;
}