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

How can i remove the runes on target and leave them for use only on yourself?

burn13

New Member
Joined
Feb 2, 2016
Messages
10
Reaction score
1
Hi guys,

I'm using TFS 1.3 and the project OtServBR 12.64. I'm trying to remove the runes on taget in hotkey and let them just on crosshairs and use on yourself.
How can i do that?

Thanks
 
Hi guys,

I'm using TFS 1.3 and the project OtServBR 12.64. I'm trying to remove the runes on taget in hotkey and let them just on crosshairs and use on yourself.
How can i do that?

Thanks
in onCastSpell you could compare variant to caster/creature

Lua:
function onCastSpell(creature, var, isHotkey)
    if isHotkey then
        local target = Player(var.number)

        -- Don't allow the rune to be used on a different creature
        if target_var and target_var:getId() ~= creature:getId() then
            return true
        end
    end
    return combat:execute(creature, var)
end
 
in onCastSpell you could compare variant to caster/creature

Lua:
function onCastSpell(creature, var, isHotkey)
    if isHotkey then
        local target = Player(var.number)

        -- Don't allow the rune to be used on a different creature
        if target_var and target_var:getId() ~= creature:getId() then
            return true
        end
    end
    return combat:execute(creature, var)
end

This did not work. still attacks players by hotkey.

is something else necessary? tfs 1.3 and client 12.xx

FLP
 
Back
Top