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

Target runes rules

chucky91

Intermediate OT User
Joined
Apr 8, 2010
Messages
267
Solutions
9
Reaction score
145
Before compiling nostalrius 7.72, i wanted to change the way of striking runes on players, as the rule 7.4. runes only attack in the battle list for monsters.
can someone help me where i change this cpp or client?
 
Solution
Hello, i has that issue and just 1 guy gave me hints of where i could fix it, finally i managed to make it work as 7.4 pvp system through the server side, although i'm using Othire 1.0, maybe it works the same for you.

The answer is in this thread i made some time ago: Otclient runes target behaviour in stack (uh trap) (https://otland.net/threads/otclient-runes-target-behaviour-in-stack-uh-trap.274392/#post-2643076)

If it works for your distro then mark it as the correct answer, maybe can be helpful for ppl using your distro too.

Edit: I noticed you're looking also for aim runes only with crosshair in players, that's in the client side, you must look in the game.cpp of the compiler and gameinterface.lua of your client folder...
Thanks <3

I am researching and trying to learn how to protect OTclient. Maybe I will migrate to this client. 12.64 is very good but I’m stuck and I can’t make many changes.

FLP
Here are some interesting links that might help you a bit with it:
 
Here are some interesting links that might help you a bit with it:
Thank you very much <3, when I start to work on this maybe I will disturb you a little bit via discord. I am testing the client in relation to how it behaves with version 12.64, etc ... And also raising all available content.

FLP
 
This code just fixed my problem, ty
function onUseWith(clickedWidget, mousePosition)
if clickedWidget:getClassName() == 'UIGameMap' then
local tile = clickedWidget:getTile(mousePosition)
if tile then
if selectedThing:isFluidContainer() or selectedThing:isMultiUse() then
g_game.useWith(selectedThing, tile:getTopMultiUseThing())
else
g_game.useWith(selectedThing, tile:getTopUseThing())
end
end
elseif clickedWidget:getClassName() == 'UIItem' and not clickedWidget:isVirtual() then
g_game.useWith(selectedThing, clickedWidget:getItem())
elseif clickedWidget:getClassName() == 'UICreatureButton' then
local creature = clickedWidget:getCreature()
if creature then
if creature:isPlayer() then
modules.game_textmessage.displayFailureMessage('You are not allowed to shoot directly on players.')
else
g_game.useWith(selectedThing, creature)
end
end
end
end
 
Back
Top