summaryrefslogtreecommitdiff
path: root/npc
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-05-04 13:12:09 -0300
committerJesusaves <cpntb1@ymail.com>2019-05-04 13:12:09 -0300
commitd3c1cd41f4cd29c77d824403006abce26f6e5b07 (patch)
tree452c3134187f1012122942e22f5bda5dd7523be0 /npc
parent6b23cb7f0e5479ae13d15b4ea4bf832c570943ff (diff)
downloadserverdata-d3c1cd41f4cd29c77d824403006abce26f6e5b07.tar.gz
serverdata-d3c1cd41f4cd29c77d824403006abce26f6e5b07.tar.bz2
serverdata-d3c1cd41f4cd29c77d824403006abce26f6e5b07.tar.xz
serverdata-d3c1cd41f4cd29c77d824403006abce26f6e5b07.zip
Disable debug marker. Also, strmobinfo returns numbers sometimes.
And I was using atoi() this whole time......
Diffstat (limited to 'npc')
-rw-r--r--npc/functions/mobhunter.txt4
-rw-r--r--npc/items/teleporter.txt2
2 files changed, 3 insertions, 3 deletions
diff --git a/npc/functions/mobhunter.txt b/npc/functions/mobhunter.txt
index a19a595a1..f0fa46834 100644
--- a/npc/functions/mobhunter.txt
+++ b/npc/functions/mobhunter.txt
@@ -87,8 +87,8 @@ function script GHQ_GetRewardsOnMilestone {
// Setup
.@old=GHMEMO[getq(General_Hunter)];
.@new=getq2(General_Hunter);
- .@blv=atoi(strmobinfo(3, .@monsterId));
- .@bhp=atoi(strmobinfo(4, .@monsterId));
+ .@blv=strmobinfo(3, .@monsterId);
+ .@bhp=strmobinfo(4, .@monsterId);
.@xp=0;
.@gp=0;
.@jp=0;
diff --git a/npc/items/teleporter.txt b/npc/items/teleporter.txt
index 887121a98..dad9b97a7 100644
--- a/npc/items/teleporter.txt
+++ b/npc/items/teleporter.txt
@@ -35,7 +35,7 @@ OnUse:
// Chances begin at 100%, and lower in 0.01% each second
// It will never be below 30%, which happens after 7000 seconds
.@adj_breakrate=max(3000, 10000-(gettimetick(2)-TELEPORTER_TIME) );
- debugmes "Adjusted break ratio: %d", .@adj_breakrate;
+ //debugmes "Adjusted break ratio: %d", .@adj_breakrate;
if (rand(0,10000) > .@adj_breakrate)
getitem @itemid, 1;
else