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

Specific Rune

Activity

Member
Joined
Apr 7, 2016
Messages
182
Reaction score
22
How can i Edit my source with specific rune aim from player window not hotkeys, like old tibia use runes from backpack not hotkeys.
TFS 0.4
Thanks.
 
In 1.2 there is a parameter in both onUse and onCastSpell labeled isHotkey.
Code:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
Code:
function onCastSpell(creature, variant, isHotkey)
A simple example of each
Code:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    if isHotkey then
        return true
    end
    -- rest of your code here
    return true
end

function onCastSpell(creature, variant, isHotkey)
    if isHotkey then
        return true
    end
 
    return combat:execute(creature, variant)
end

O sorry didn't see the 0.4 :(

Is there a constant in your sources called AIMBOT_HOTKEY_ENABLED?
 
Last edited:
In 1.2 there is a parameter in both onUse and onCastSpell labeled isHotkey.
Code:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
Code:
function onCastSpell(creature, variant, isHotkey)
A simple example of each
Code:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
    if isHotkey then
        return true
    end
    -- rest of your code here
    return true
end

function onCastSpell(creature, variant, isHotkey)
    if isHotkey then
        return true
    end

    return combat:execute(creature, variant)
end

O sorry didn't see the 0.4 :(

Is there a constant in your sources called AIMBOT_HOTKEY_ENABLED?
In which file?
Found It
Code:
configmanager.cpp
    Line 169:     m_confBool[AIMBOT_HOTKEY_ENABLED] = getGlobalBool("hotkeyAimbotEnabled", true);
Code:
configmanager.h
    Line 250:             AIMBOT_HOTKEY_ENABLED,
Code:
game.cpp
Line 2507:     if(isHotkey && !g_config.getBool(ConfigManager::AIMBOT_HOTKEY_ENABLED))
    Line 2599:     if(isHotkey && !g_config.getBool(ConfigManager::AIMBOT_HOTKEY_ENABLED))
    Line 2672:     if(!g_config.getBool(ConfigManager::AIMBOT_HOTKEY_ENABLED) && (creature->getPlayer() || isHotkey))
that's all.
 
Last edited:
Back
Top