• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Help with loot description.

patrick_cvs

New Member
Joined
Apr 21, 2020
Messages
12
Reaction score
0
You need find this file data/creaturescripts/scripts/others/boss_reward_chest.lua

Search and remove it!
Lua:
if con.player and con.score ~= 0 then
                local lootMessage = ("The following items dropped by %s are available in your reward chest: %s"):format(creature:getName(), reward:getContentDescription())

                if stamina > 840 then
                    reward:getContentDescription(lootMessage)
                end
                con.player:sendTextMessage(MESSAGE_LOOT, lootMessage)
            elseif con.score ~= 0 then
                insertRewardItems(con.guid, timestamp, playerLoot)
            end
 
revert this change in container.cpp file and recompile, but your colored loot on client 12 will not work anymore
I can't open link. Can you send it again? I have same problem. Thanks

Edit: how to remove this error.

Open container.cpp and search fo this line:

C++:
            os << "{" << item->getID() << "|" << item->getNameDescription() << "}";

change for:

C++:
os << item->getNameDescription();

message after exchange:
1701435816307.png
 
Last edited:
Back
Top