From 0016ab2db19f5aabceab37dd99ce39f5345172ef Mon Sep 17 00:00:00 2001 From: jesusalva Date: Thu, 8 Feb 2018 17:41:13 -0200 Subject: Add a missing file, report a KNOWN BUG on Zegas quest - because DEVELOPER FAULT. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I'm not fixing this one, so everyone working at scripts may know about it. Quoting the manual: NPC variables (.) “exist in the NPC and disappear when the server restarts or the NPC is reloaded.” They are not unique-by-character, nor unique-by-char-and-npc. They are unique-by-NPC. Meaning, a change to a "." variable affects EVERYONE in the server. --- npc/005-3/barrel.txt | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'npc/005-3/barrel.txt') diff --git a/npc/005-3/barrel.txt b/npc/005-3/barrel.txt index 721ec6f97..a60cc55f0 100644 --- a/npc/005-3/barrel.txt +++ b/npc/005-3/barrel.txt @@ -13,6 +13,12 @@ // 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 { .questCheck = .questCheck + 1; areamonster "005-3", 24, 34, 45, 42, "Cave Maggot", 1027, 1; -- cgit v1.2.3-60-g2f50