This script will say a spell every X seconds to keep your mana training going while you browse the web on another monitor. Note: This requires the Tibia client to be active (in focus).
; Mana Sitter (Press F3 to Toggle) ; Sends "exura" every random interval.#MaxThreadsPerHotkey 2 Toggle := 0
F3:: Toggle := !Toggle ToolTip, Mana Train: %Toggle% ; Shows a tooltip on screen SetTimer, RemoveToolTip, 1000 return
RemoveToolTip: ToolTip return
; The Loop #If Toggle SetTimer, ManaCheck, 1500 return
ManaCheck: if (!Toggle) return
Random, randSleep, 2000, 4000 ; Sleep between 2 and 4 seconds Sleep, randSleep ; Check if Toggle is still true after sleep if (Toggle) Send, Enter ; Open chat Sleep, 50 Send, exura ; Type spell Send, Enter ; Send spell
return
If the risks of AHK scare you, consider these legitimate alternatives:
Tibia logs you out after 15 minutes of no input. This script presses a benign key (F12 does nothing in Tibia) every 5 minutes:
#IfWinActive, ahk_class TibiaClient SetTimer, AntiIdle, 300000 ; 5 minutes
AntiIdle: Send, F12 Sleep, 50 Send, F12 return #IfWinActivetibia autohotkey scripts
To enable/disable with a hotkey:
^F9:: ; Ctrl+F9 toggles anti-idle
Toggle := !Toggle
If Toggle
SetTimer, AntiIdle, 300000
Tooltip, Anti-idle ON
Else
SetTimer, AntiIdle, Off
Tooltip, Anti-idle OFF
SetTimer, RemoveTooltip, -1000
return
If you’re worried about bans, consider these built-in or hardware-based options:
This is the most common offender. You press one button, and the script:
; DANGEROUS - DO NOT USE
F1::
Send F1 ; Exura
Sleep 50
Send F2 ; Mana potion
Sleep 50
Send F3 ; Attack spell
return
Why it's bannable: One human action (pressing F1) triggers three game actions. This script will say a spell every X
This section cannot be overstated. CipSoft actively bans for automation.
Bottom line: If your script plays the game for you while you watch Netflix, you will be banned. If it makes your keyboard more comfortable, you are likely safe.
Scans the ground for a gold coin color and clicks it.
^L::
ImageSearch, FoundX, FoundY, 0, 0, A_ScreenWidth, A_ScreenHeight, goldcoin.bmp
If ErrorLevel = 0
MouseMove, FoundX, FoundY, 0
Click
Send F10 ; Loot hotkey
return
Why you shouldn't use this: BattleEye flags any script that moves the mouse cursor independent of your physical mouse movements. This is a perma-ban waiting to happen.