Hello,
First of all i using TFS 1.2 downgraded by Ninja edited by @celohere ([8.0] - TFS 1.2 (https://otland.net/threads/8-0-tfs-1-2.263797/)) for Tibia 8.0 protocol.
I added simple talkaction
I have 2 players in game (one is guild leader) and after typing talkaction !outfit both Tibia clients crash.
After i connect again to the game and second player outfit colours changed but unfortunately with client crash.
Is only crashing Tibia client, OtClientv8 is fine
Solution: -
First of all i using TFS 1.2 downgraded by Ninja edited by @celohere ([8.0] - TFS 1.2 (https://otland.net/threads/8-0-tfs-1-2.263797/)) for Tibia 8.0 protocol.
I added simple talkaction
Lua:
local config = {
exhaustionInSeconds = 30,
storage = 34534
}
function onSay(cid, words, param)
local playerGuild = getPlayerGuildId(cid)
if(playerGuild == FALSE) then
doPlayerSendCancel(cid, "Sorry, you're not in a guild.")
return TRUE
end
local players = Game.getPlayers()
local outfit = getCreatureOutfit(cid)
local message = "*Guild* Your outfit has been changed by leader. (" .. getCreatureName(cid) .. ")"
local members = 0
for i, tid in ipairs(players) do
local tmp = getCreatureOutfit(tid)
tmp.lookHead = outfit.lookHead
tmp.lookBody = outfit.lookBody
tmp.lookLegs = outfit.lookLegs
tmp.lookFeet = outfit.lookFeet
doSendMagicEffect(getCreaturePosition(tid), 66)
doCreatureChangeOutfit(tid, tmp)
doPlayerSendTextMessage(tid, MESSAGE_INFO_DESCR, message)
members = members + 1
end
doPlayerSendCancel(cid, "Guild members outfit has been changed. (Total: " .. members .. ")")
return TRUE
end
I have 2 players in game (one is guild leader) and after typing talkaction !outfit both Tibia clients crash.
After i connect again to the game and second player outfit colours changed but unfortunately with client crash.
Post automatically merged:
Is only crashing Tibia client, OtClientv8 is fine
Post automatically merged:
Solution: -
Code:
Removed doSendMagicEffect(getCreaturePosition(tid), 66)
Attachments
-
bug1.png209.6 KB · Views: 4 · VirusTotal
-
bug2.png819.5 KB · Views: 4 · VirusTotal
Last edited: