summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2018-03-16 13:32:30 -0300
committerJesusaves <cpntb1@ymail.com>2018-03-16 13:32:30 -0300
commit110f6d94c84063acbb1b059bbeb2789024750284 (patch)
tree0fb2569ade3d8a57253bb808e18b1a151dba7f03 /npc
parent979271d36b75246153096f648b1946da9b7397be (diff)
downloadserverdata-110f6d94c84063acbb1b059bbeb2789024750284.tar.gz
serverdata-110f6d94c84063acbb1b059bbeb2789024750284.tar.bz2
serverdata-110f6d94c84063acbb1b059bbeb2789024750284.tar.xz
serverdata-110f6d94c84063acbb1b059bbeb2789024750284.zip
"fixes"
Diffstat (limited to 'npc')
-rw-r--r--npc/003-1/michel.txt2
-rw-r--r--npc/items/rand_sc_heal.txt6
2 files changed, 4 insertions, 4 deletions
diff --git a/npc/003-1/michel.txt b/npc/003-1/michel.txt
index ed0eef8bb..1024e401c 100644
--- a/npc/003-1/michel.txt
+++ b/npc/003-1/michel.txt
@@ -30,7 +30,7 @@
next;
mes "";
- .@nb = query_sql("select name, base_level from `char` ORDER BY base_level DESC WHERE `guild_id`!=1 LIMIT 5", .@name$, .@value);
+ .@nb = query_sql("select name, base_level from `char` WHERE `guild_id`!=1 ORDER BY base_level DESC LIMIT 5", .@name$, .@value);
mes l("##BHall Of Level: TOP5##b");
mes("1."+.@name$[0]+" ("+.@value[0]+")");
mes("2."+.@name$[1]+" ("+.@value[1]+")");
diff --git a/npc/items/rand_sc_heal.txt b/npc/items/rand_sc_heal.txt
index 046b38e1c..bc3d870fe 100644
--- a/npc/items/rand_sc_heal.txt
+++ b/npc/items/rand_sc_heal.txt
@@ -38,7 +38,7 @@
}
else
{
- @val3 = @val1;
+ @val1 = @val3;
}
return;
}
@@ -50,9 +50,9 @@ OnUse:
.@vitality_bonus = min(@min, readparam(bVit) * BaseLevel / 20);
.@rand_heal_val = rand(@min, @max);
- // val3 is the heal value without the vitality bonus
- @val3 = .@rand_heal_val / @delay;
+ // val1 used to be the heal value without the vitality bonus
@val1 = (.@rand_heal_val + .@vitality_bonus) / @delay;
+ @val3 = (.@rand_heal_val + .@vitality_bonus) / @delay;
if (@val3 <= 0) close;