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

Dissabled Battle OTC CLIENT

albertelrei

Old Player Synce 2007 Guia3d Old staff
Joined
Aug 25, 2009
Messages
27
Reaction score
0
Hello guys, can someone help me?
i think otclient dont have support for this yet, if i'm not wrong.
i need cancel runes on battle against players, only monsters can be attacked by battle with runes, like oldschool tibia.
 
In file modules\game_interface\gameinterface.lua in lines 375-379:

Change this:

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

To this:

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

This code prevents using runes on players in battle list.
 
In file modules\game_interface\gameinterface.lua in lines 375-379:

Change this:

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

To this:

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

This code prevents using runes on players in battle list.

Thx men!!
 
this should be attaced simce everyone is looking for this function
How attaced? Even if you will add an option to turn off shooting player in battlelist (what is easy do to), who will check it?

@MagicWall
shouldn't it be like
Lua:
if creature and not creature:isPlayer() then
?

#Down:
Right, it should be.
 
Last edited:
htye are like 4 out there xd but ye tis should be attached you're not the first or the last looking for this hehe
 
Back
Top