summaryrefslogtreecommitdiff
path: root/npc/005-3
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-06-01 21:30:02 -0300
committerJesusaves <cpntb1@ymail.com>2019-06-01 21:30:02 -0300
commit44862dca9b6f26513f23ea1fd79365c7a8d33d9e (patch)
treed125ad9b9249c6f061a11991ec1b5d742662236c /npc/005-3
parentd3c277d189ff513258f290c84680d275c4d05e0c (diff)
downloadserverdata-44862dca9b6f26513f23ea1fd79365c7a8d33d9e.tar.gz
serverdata-44862dca9b6f26513f23ea1fd79365c7a8d33d9e.tar.bz2
serverdata-44862dca9b6f26513f23ea1fd79365c7a8d33d9e.tar.xz
serverdata-44862dca9b6f26513f23ea1fd79365c7a8d33d9e.zip
Use rand2() instead of rand() in several places
Diffstat (limited to 'npc/005-3')
-rw-r--r--npc/005-3/barrel.txt8
1 files changed, 1 insertions, 7 deletions
diff --git a/npc/005-3/barrel.txt b/npc/005-3/barrel.txt
index c70ce6664..23476ac32 100644
--- a/npc/005-3/barrel.txt
+++ b/npc/005-3/barrel.txt
@@ -13,12 +13,6 @@
// 3 Bomb Defused.
// 4 Quest Completed.
-// TODO FIXME: KNOWN BUG
-// It is a known bug that using .questCheck and .questState is ABSOLUTELY WRONG
-// A NPC variable affects the whole server, lasting until server restart.
-// Therefore, by using "." variables, it will only work at localhosts.
-// TODO FIXME: KNOWN BUG
-
function script CheckBarrel {
@barrel_count = 0;
@count_tmp = 0;
@@ -40,7 +34,7 @@ L_BarrelTally:
killmonster("005-3", "Trainer::OnKillHouseMaggot");
setq CandorQuest_Barrel, 3;
}
- @rand = rand(7);
+ @rand = rand2(7);
if (@rand == 0)
getitem Coal,1;
else if (@rand == 1)