diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-12-18 12:29:09 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-12-18 12:29:09 -0200 |
commit | 4eb9c2b59dfd77fd0b155dd25571ee5b1c9af658 (patch) | |
tree | 00de656212255352b45db489e31fb0db2a476d6d /npc/functions | |
parent | e60627c86c5e4d45482eb731cfc0404029c1b68e (diff) | |
download | serverdata-4eb9c2b59dfd77fd0b155dd25571ee5b1c9af658.tar.gz serverdata-4eb9c2b59dfd77fd0b155dd25571ee5b1c9af658.tar.bz2 serverdata-4eb9c2b59dfd77fd0b155dd25571ee5b1c9af658.tar.xz serverdata-4eb9c2b59dfd77fd0b155dd25571ee5b1c9af658.zip |
Try a tweak on fishing to see if it works
Diffstat (limited to 'npc/functions')
-rw-r--r-- | npc/functions/daily.txt | 2 | ||||
-rw-r--r-- | npc/functions/fishing.txt | 32 |
2 files changed, 17 insertions, 17 deletions
diff --git a/npc/functions/daily.txt b/npc/functions/daily.txt index 197ea3592..52ad2e18b 100644 --- a/npc/functions/daily.txt +++ b/npc/functions/daily.txt @@ -16,7 +16,7 @@ function script daily_login_bonus_handler { // Number of monthly connections // #LOGIN_ALLTIME // Number of times you claimed the top prize (27 days streak) - debugmes "DLBH"; + //debugmes "DLBH"; if (#LOGIN_DAY != gettime(5)) { // demure check: Are you on a start area? diff --git a/npc/functions/fishing.txt b/npc/functions/fishing.txt index e9d52d41f..f3942de79 100644 --- a/npc/functions/fishing.txt +++ b/npc/functions/fishing.txt @@ -52,10 +52,26 @@ OnPCLogoutEvent: end; } +// Syntax: fishing() +// Syntax: fishing ( COMMON, RARE, BAITS ) function script fishing { /////////////////////////////////////////// // Var initialization + .@common_fish=getarg(0, 0); + .@rare_fish=getarg(0, 0); + if (getarraysize(.@common_fish) < 1 || .@common_fish == 0) { + // default fishes + setarray .@common_fish, + CommonCarp; + } + + if (getarraysize(.@rare_fish) < 1 || .@rare_fish == 0) { + // default fishes + setarray .@rare_fish, + GrassCarp; + } + debugmes("[FISH] Initialized with %d common and %d rare fishes", getarraysize(.@common_fish), getarraysize(.@rare_fish)); .@npc$ = strnpcinfo(0); // the full name of the fishing spot @@ -105,22 +121,6 @@ function script fishing { .@fish_id = CommonCarp; // failsafe - .@common_fish=getvariableofnpc(.common_fish, .@npc$); - if (getarraysize(.@common_fish) < 1) - { - // default fishes - setarray .@common_fish, - CommonCarp; - } - - .@rare_fish=getvariableofnpc(.rare_fish, .@npc$); - if (getarraysize(.@rare_fish) < 1) - { - // default fishes - setarray .@rare_fish, - GrassCarp; - } - debugmes("[FISH] Initialized with %d common and %d rare fishes", getarraysize(.@common_fish), getarraysize(.@rare_fish)); if (getvariableofnpc(.bait_ids[0], .@npc$) < 1) { |