diff options
author | jesusalva <cpntb1@ymail.com> | 2018-02-08 17:41:13 -0200 |
---|---|---|
committer | jesusalva <cpntb1@ymail.com> | 2018-02-08 17:41:13 -0200 |
commit | 0016ab2db19f5aabceab37dd99ce39f5345172ef (patch) | |
tree | 9c6deccdc8a3defcdb1a6d85f427820147309a97 | |
parent | 716dc9da39dd3d462cc3a90fac0e9097d8318e14 (diff) | |
download | serverdata-0016ab2db19f5aabceab37dd99ce39f5345172ef.tar.gz serverdata-0016ab2db19f5aabceab37dd99ce39f5345172ef.tar.bz2 serverdata-0016ab2db19f5aabceab37dd99ce39f5345172ef.tar.xz serverdata-0016ab2db19f5aabceab37dd99ce39f5345172ef.zip |
Add a missing file, report a KNOWN BUG on Zegas quest - because DEVELOPER FAULT.
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.
-rw-r--r-- | db/quest_db.conf | 4 | ||||
-rw-r--r-- | npc/005-3/barrel.txt | 6 |
2 files changed, 10 insertions, 0 deletions
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 @@ -186,6 +186,10 @@ quest_db: ( 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;
|