From 3d494df492ca0ef5038f0707cfc739b1677ef2fa Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Wed, 14 Apr 2021 23:08:54 -0300 Subject: Silly Jesusalva, you MUST add the base time --- npc/functions/weather.txt | 2 +- npc/magic/level2-rain.txt | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/npc/functions/weather.txt b/npc/functions/weather.txt index 5de86a5b..75605749 100644 --- a/npc/functions/weather.txt +++ b/npc/functions/weather.txt @@ -155,7 +155,7 @@ OnInit: .@t = htget(.wtime, .@m$, 0); if (.@t <= 0) { addmapmask(.@m$, .@mk); - htput(.wtime, .@m$, .@tm); + htput(.wtime, .@m$, gettimetick(2)+.@tm); } else { htput(.wtime, .@m$, .@t+.@tm); } diff --git a/npc/magic/level2-rain.txt b/npc/magic/level2-rain.txt index 69f0746c..c008ae3a 100644 --- a/npc/magic/level2-rain.txt +++ b/npc/magic/level2-rain.txt @@ -25,11 +25,11 @@ function script SK_Kaflosh { delitem BottleOfWater, 1; GetManaExp(@skillId, 2); - // Adjusted MATK will determine rain duration (10 ATK = 1s) + // Adjusted MATK will determine rain duration (11 ATK = 1s) .@PW=80+(20*@skillLv); .@dmg=AdjustSpellpower(.@PW); - .@time=.@dmg/10; - debugmes "KAFLOSH: Damage %d Time %d Climate %d", .@dmg, .@time, .@cl; + .@time=.@dmg/11; + //debugmes "KAFLOSH: Damage %d Time %d Climate %d", .@dmg, .@time, .@cl; .@time+=getskilllv(SKILL_MAGIC_NATURE)-2; // +1 second per nature magic lv // Adverse climate (eg. desert and icelands) will cut this to 1/3 @@ -42,7 +42,6 @@ function script SK_Kaflosh { return; } - debugmes "KAFLOSH FINAL: Damage %d Time %d Climate %d", .@dmg, .@time, .@cl; // Invoke the rain clouds; Everything else should work out of the box // The builtin checks are not necessary in this case =D // But would be for a sandstorm or snowstorm. -- cgit v1.2.3-60-g2f50