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. --- db/quest_db.conf | 4 ++++ npc/005-3/barrel.txt | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/db/quest_db.conf b/db/quest_db.conf index 1bd0a2d63..f80fe4eee 100644 --- a/db/quest_db.conf +++ b/db/quest_db.conf @@ -185,6 +185,10 @@ quest_db: ( Id: 39 Name: "CandorQuest_Apana" }, +{ + Id: 40 + Name: "CandorQuest_Barrel" +}, { Id: 1000 Name: "Test_testing1" 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-70-g09d2