summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-14 23:08:54 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-14 23:08:54 -0300
commit3d494df492ca0ef5038f0707cfc739b1677ef2fa (patch)
tree25f02f39543ba32aea901598f6cabb91b93ef751
parent5a566ac50befd9d78423bff1bf437ef255439ee0 (diff)
downloadserverdata-3d494df492ca0ef5038f0707cfc739b1677ef2fa.tar.gz
serverdata-3d494df492ca0ef5038f0707cfc739b1677ef2fa.tar.bz2
serverdata-3d494df492ca0ef5038f0707cfc739b1677ef2fa.tar.xz
serverdata-3d494df492ca0ef5038f0707cfc739b1677ef2fa.zip
Silly Jesusalva, you MUST add the base time
-rw-r--r--npc/functions/weather.txt2
-rw-r--r--npc/magic/level2-rain.txt7
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.