• 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

New Member
Joined
Aug 8, 2011
Messages
106
Reaction score
4
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:
OP
OP
Jpstafe

Jpstafe

New Member
Joined
Aug 8, 2011
Messages
106
Reaction score
4
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

wizinx

Active Member
Joined
Jul 6, 2010
Messages
138
Solutions
2
Reaction score
29
Location
Chile, Santiago
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
 
OP
OP
Jpstafe

Jpstafe

New Member
Joined
Aug 8, 2011
Messages
106
Reaction score
4
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
 
Top