From d24df5473a1e7edb2ecde29f781df5d64ee7121d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 17 Mar 2018 19:41:51 -0300 Subject: The correct way to do Candor fishing, without a custom file --- npc/functions/fishing.txt | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'npc/functions') diff --git a/npc/functions/fishing.txt b/npc/functions/fishing.txt index be11579d9..6cbc33ac0 100644 --- a/npc/functions/fishing.txt +++ b/npc/functions/fishing.txt @@ -104,15 +104,18 @@ function script fishing { .@pull_rand_max = (.@pull_rand_max ? .@pull_rand_max : 800); .@fish_id = CommonCarp; // failsafe - - if (getarraysize(getvariableofnpc(.common_fish, .@npc$)) < 1) + + .@common_fish=getvariableofnpc(.common_fish, .@npc$); + if (getarraysize(.@common_fish) < 1) { // default fishes setarray .@common_fish, CommonCarp; + debugmes "Default"; } - if (getarraysize(getvariableofnpc(.rare_fish, .@npc$)) < 1) + .@rare_fish=getvariableofnpc(.rare_fish, .@npc$); + if (getarraysize(.@rare_fish) < 1) { // default fishes setarray .@rare_fish, -- cgit v1.2.3-70-g09d2