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

Battle window not working Otclient

Jpstafe

Well-Known Member
Joined
Aug 8, 2011
Messages
505
Reaction score
67
hello good afternoon otland community, I have an error with my otclient, when I want to attack any monster by battle the rune does not come out..when I attack mele if it takes me .. only with rune I cannot attack by battle .. solution?

battle.png


when I attack with mele yes, allow me, with runes no

battle2.png
Post automatically merged:

+up
 
Last edited:
Which TFS Version you using? I think the problem is in your source, probably you don't have this function in your engine.
 
Which TFS Version you using? I think the problem is in your source, probably you don't have this function in your engine.
It is not the engine of my server .. in the original client of tibia 7.72 it works perfect to be able to launch runes for battle
 

Attachments

Lua:
elseif clickedWidget:getClassName() == 'UICreatureButton' then
    local creature = clickedWidget:getCreature()
    if creature then
      g_game.useWith(selectedThing, creature)
end

To this:


Lua:
elseif clickedWidget:getClassName() == 'UICreatureButton' then
    local creature = clickedWidget:getCreature()
    if not creature:isPlayer() then
      g_game.useWith(selectedThing, creature)
end
 
Lua:
elseif clickedWidget:getClassName() == 'UICreatureButton' then
    local creature = clickedWidget:getCreature()
    if creature then
      g_game.useWith(selectedThing, creature)
end

To this:


Lua:
elseif clickedWidget:getClassName() == 'UICreatureButton' then
    local creature = clickedWidget:getCreature()
    if not creature:isPlayer() then
      g_game.useWith(selectedThing, creature)
end
this worked! .. thank you very much
 
Back
Top