From 44862dca9b6f26513f23ea1fd79365c7a8d33d9e Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 1 Jun 2019 21:30:02 -0300 Subject: Use rand2() instead of rand() in several places --- npc/005-3/barrel.txt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'npc/005-3/barrel.txt') 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) -- cgit v1.2.3-60-g2f50