summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2023-10-30 13:06:37 -0300
committerJesusaves <cpntb1@ymail.com>2023-10-30 13:06:37 -0300
commit462db5c58dcb6741bdbabc282069cd5f9c0543a6 (patch)
tree889c12f2eff1a8f54037ecd68791e7c423795e92
parent6259cdc638dd466dda3d423fbd0d8f79724e14bd (diff)
downloadserverdata-462db5c58dcb6741bdbabc282069cd5f9c0543a6.tar.gz
serverdata-462db5c58dcb6741bdbabc282069cd5f9c0543a6.tar.bz2
serverdata-462db5c58dcb6741bdbabc282069cd5f9c0543a6.tar.xz
serverdata-462db5c58dcb6741bdbabc282069cd5f9c0543a6.zip
Fix oversight in complaint form logic
-rw-r--r--db/constants.conf1
-rw-r--r--npc/003-2-1/demure.txt3
2 files changed, 3 insertions, 1 deletions
diff --git a/db/constants.conf b/db/constants.conf
index 6ae50be16..db79776a4 100644
--- a/db/constants.conf
+++ b/db/constants.conf
@@ -2165,6 +2165,7 @@ constants_db: {
FLAG_MKFIRSTBLOOD: 1
FLAG_WUMPUSEGG: 2
FLAG_SHANNONTRUST: 4
+ FLAG_COMPLAINTFORM: 8
comment__: "Monster King Events"
MK_NONE: 0
diff --git a/npc/003-2-1/demure.txt b/npc/003-2-1/demure.txt
index ea5752ffa..5508644f4 100644
--- a/npc/003-2-1/demure.txt
+++ b/npc/003-2-1/demure.txt
@@ -7,11 +7,12 @@
RegEasterEgg(EE_DEMURE, 5);
- if (countitem(ComplaintForm) > 100) {
+ if (countitem(ComplaintForm) > 100 && !(FLAGS & FLAG_COMPLAINTFORM)) {
delitem ComplaintForm, 100;
Zeny+=100*getiteminfo(ComplaintForm, ITEMINFO_SELLPRICE);
dispbottom l("Due to a bug, all your complaint forms became money!");
RegEasterEgg(EE_COMPLAINT, 15);
+ FLAGS = FLAGS | FLAG_COMPLAINTFORM;
}
// Let's try without freeloop