diff options
author | Hello=) <hello@themanaworld.org> | 2024-10-07 11:58:06 +0300 |
---|---|---|
committer | Hello=) <hello@themanaworld.org> | 2024-10-07 11:58:06 +0300 |
commit | ccc2200bfd29870b2e979fabf510ee224312d278 (patch) | |
tree | 9eff065375e6e9fa72aaccf71d9da77b5411fc28 | |
parent | 4d946107a6118e90e00a18649c9f3898b069f344 (diff) | |
download | serverdata-trick-or-treat-fix.tar.gz serverdata-trick-or-treat-fix.tar.bz2 serverdata-trick-or-treat-fix.tar.xz serverdata-trick-or-treat-fix.zip |
This fixes weird "I remember you Unknown Item person" message aftertrick-or-treat-fix
player performed trick-or-treat and came to same NPC again.
Root cause:
* On one side, getitemlink() does not works with integers, only item names.
* On other, getequipid(equip_head) returns integer number - item ID.
Overall it downspiralled into attempt to look up nonexistent item.
This error in quest been reported by player.
Reported-By: Alexdyne
-rw-r--r-- | world/map/npc/annuals/halloween/trick_or_treat.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/world/map/npc/annuals/halloween/trick_or_treat.txt b/world/map/npc/annuals/halloween/trick_or_treat.txt index 10265382..be250032 100644 --- a/world/map/npc/annuals/halloween/trick_or_treat.txt +++ b/world/map/npc/annuals/halloween/trick_or_treat.txt @@ -71,7 +71,7 @@ L_MaskMemoryCheck: L_MaskMemoryYes: // not necessarily true - mes "\"I remember you, " + getitemlink(getequipid(equip_head)) + " person. No more treats for you!\""; + mes "\"I remember you, @@" + (getequipid(equip_head)) + "|@@ person. No more treats for you!\""; goto L_Close; L_MaskMemoryNo: |