• 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!

TFS 1.X+ Free imbuement items

Dreww

Banned User
Joined
Oct 7, 2011
Messages
252
Reaction score
409
Location
México
Hello i have this problem with imbuement i don't need the items it show 999. How do i remove this so player need to loot respective items instead of already having 999.

7428c1de77b680a24eaab25ca0694fea.png


I found this line on modules/imbuement.lua:
Lua:
msg:addU32(#myImbuements*3)
    for k = 1, #myImbuements do
        for j = 1, 3 do
            msg:addItemId(myImbuements[k].Items[j][1])
            if self:getAccountType() < 5 then
                msg:addU16(self:getItemCount(myImbuements[k].Items[j][1]))
            else
                msg:addU16(999)
            end
        end
    end

But if i remove that lines my client crash when i use Imbuing Shrine and if i set addU16(999) to addU16(0)
don't work. It doesnt count the items required

¿can someone help me? and sorry my bad english
 
Solution
Lua:
msg:addU32(#myImbuements*3)
for k = 1, #myImbuements do
    for j = 1, 3 do
        msg:addItemId(myImbuements[k].Items[j][1])
        msg:addU16(self:getItemCount(myImbuements[k].Items[j][1]))
    end
end
Lua:
msg:addU32(#myImbuements*3)
for k = 1, #myImbuements do
    for j = 1, 3 do
        msg:addItemId(myImbuements[k].Items[j][1])
        msg:addU16(self:getItemCount(myImbuements[k].Items[j][1]))
    end
end
 
Solution
Back
Top