diff options
author | gumi <git@gumi.ca> | 2018-07-05 15:56:24 -0400 |
---|---|---|
committer | gumi <git@gumi.ca> | 2018-07-05 15:57:18 -0400 |
commit | 2a45b3217e8317a10446f1787f0cd4eb7392c1fe (patch) | |
tree | 2ee08ceaca34a0966127c9c6e24a61a375c52b3d /npc/functions | |
parent | 9c5c35fb3a0e217c62d7a784fadb51f3cdc20142 (diff) | |
download | serverdata-2a45b3217e8317a10446f1787f0cd4eb7392c1fe.tar.gz serverdata-2a45b3217e8317a10446f1787f0cd4eb7392c1fe.tar.bz2 serverdata-2a45b3217e8317a10446f1787f0cd4eb7392c1fe.tar.xz serverdata-2a45b3217e8317a10446f1787f0cd4eb7392c1fe.zip |
improve the shovel script
Co-authored-by: Jesusaves <cpntb1@ymail.com>
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/fishing.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/functions/fishing.txt b/npc/functions/fishing.txt index 3036c76d..f1782f3e 100644 --- a/npc/functions/fishing.txt +++ b/npc/functions/fishing.txt @@ -183,7 +183,7 @@ function script fishing { .@fish_id = relative_array_random(getvariableofnpc(.fish_ids[0], .@npc$)); // RNG to obtain a fish - if (rand(gettimetick(0) - @fishing_tick) <= .@pull_rand_max + (100 * .@booster)) + if (rand(gettimetick(0) - @fishing_tick) <= .@pull_rand_max + (100 * @FISHING_BOOSTER[getnpcid(0)])) { specialeffect(.@success_fx, SELF, playerattached()); // event success @@ -244,7 +244,7 @@ function script fishing { if (getvariableofnpc(.bait_ids[.@i], .@npc$) == .@bait) { .@bait_c = true; - .@booster = getvariableofnpc(.bait_ids[.@i + 1], .@npc$); + @FISHING_BOOSTER[getnpcid(0)] = getvariableofnpc(.bait_ids[.@i + 1], .@npc$); break; } } |