diff options
author | Jesusaves <cpntb1@ymail.com> | 2018-12-18 12:24:42 -0200 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2018-12-18 12:24:42 -0200 |
commit | e60627c86c5e4d45482eb731cfc0404029c1b68e (patch) | |
tree | 565582c13e90d7d562eb0258bd117c3c84a5140f | |
parent | a939de6cc231c31276b1871479103fd72d4f1c97 (diff) | |
download | serverdata-e60627c86c5e4d45482eb731cfc0404029c1b68e.tar.gz serverdata-e60627c86c5e4d45482eb731cfc0404029c1b68e.tar.bz2 serverdata-e60627c86c5e4d45482eb731cfc0404029c1b68e.tar.xz serverdata-e60627c86c5e4d45482eb731cfc0404029c1b68e.zip |
Debug messages
-rw-r--r-- | npc/functions/daily.txt | 6 | ||||
-rw-r--r-- | npc/functions/fishing.txt | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/npc/functions/daily.txt b/npc/functions/daily.txt index 9c1dc1665..197ea3592 100644 --- a/npc/functions/daily.txt +++ b/npc/functions/daily.txt @@ -24,7 +24,7 @@ function script daily_login_bonus_handler { if (.@m$ ~= "000") return; - debugmes "[DLBH] Mapcheck ok"; + //debugmes "[DLBH] Mapcheck ok"; // Is it a new month? if (#LOGIN_TABLE == gettime(6)) { #LOGIN_STREAK=#LOGIN_STREAK+1; @@ -35,7 +35,7 @@ function script daily_login_bonus_handler { // Update last day you've claimed a reward #LOGIN_DAY = gettime(5); - debugmes "[DLBH] month checks ok"; + //debugmes "[DLBH] month checks ok"; // Handle rewards: Streaks first, daily later. Streak reward prevail over daily reward. if (#LOGIN_STREAK > 27) { @@ -99,7 +99,7 @@ function script daily_login_bonus_handler { dispbottom l("##2Daily login bonus: ##B@@ Job Exp.##b", .@value); } } - debugmes "[DLBH] Finished: "+#LOGIN_DAY+" ok"; + //debugmes "[DLBH] Finished: "+#LOGIN_DAY+" ok"; return; } diff --git a/npc/functions/fishing.txt b/npc/functions/fishing.txt index 704d23e1b..e9d52d41f 100644 --- a/npc/functions/fishing.txt +++ b/npc/functions/fishing.txt @@ -120,6 +120,7 @@ function script fishing { 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) { @@ -194,8 +195,10 @@ function script fishing { // RNG to obtain a rare fish or common fish if (rand(0, 100) < getvariableofnpc(.bait_ids[@bait_d+1], .@npc$)) { + debugmes("[FISH] Got a rare with %d drop chances", getarraysize(.@rare_fish)); .@fish_id = any_of(.@rare_fish); } else { + debugmes("[FISH] Got a common with %d drop chances", getarraysize(.@common_fish)); .@fish_id = any_of(.@common_fish); } |