mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-10-23 07:55:55 +02:00
Updated to OTCv8 3.0 rev 19
This commit is contained in:
20
modules/game_bot/default_configs/vBot/Title.lua
Normal file
20
modules/game_bot/default_configs/vBot/Title.lua
Normal file
@@ -0,0 +1,20 @@
|
||||
local vocation = player:getVocation()
|
||||
local vocText = ""
|
||||
|
||||
if vocation == 1 or vocation == 11 then
|
||||
vocText = "- EK"
|
||||
elseif vocation == 2 or vocation == 12 then
|
||||
vocText = "- RP"
|
||||
elseif vocation == 3 or vocation == 13 then
|
||||
vocText = "- MS"
|
||||
elseif vocation == 4 or vocation == 14 then
|
||||
vocText = "- ED"
|
||||
end
|
||||
|
||||
macro(2000, function()
|
||||
if hppercent() > 0 then
|
||||
g_window.setTitle("Tibia - " .. player:getName() .. " - " .. lvl() .. "lvl " .. vocText)
|
||||
else
|
||||
g_window.setTitle("Tibia - " .. player:getName() .. " - DEAD")
|
||||
end
|
||||
end)
|
Reference in New Issue
Block a user