function onUse(player, item, fromPosition, target, toPosition, isHotkey)
function onCastSpell(creature, variant, isHotkey)
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
In which file?In 1.2 there is a parameter in both onUse and onCastSpell labeled isHotkey.
Code:function onUse(player, item, fromPosition, target, toPosition, isHotkey)A simple example of eachCode:function onCastSpell(creature, variant, isHotkey)
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?
configmanager.cpp
Line 169: m_confBool[AIMBOT_HOTKEY_ENABLED] = getGlobalBool("hotkeyAimbotEnabled", true);
configmanager.h
Line 250: AIMBOT_HOTKEY_ENABLED,
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))
hotkeyAimbotEnabled = false
But i need one rune only to be disabledSo then place in your config.lua
Of course this will disable them all.Code:hotkeyAimbotEnabled = false