i need if someone come from guild "x" then allarm
i need if someone come from guild "x" then allarm
init start
local safeList = {"blakw", "seebaa"} --Player Safe List
local yourCharName = "Your Char Name"
local enemyGuild = "Enemy Guild Name"
local msgDelay = 2500 --Delay between messages
local playerMinLevel = 10 --Consider only players above level 10
local seenList = {}
table.lower(safeList)
init end
auto(500, 800)
foreach creature p "psx"
do
if (not table.find(seenList, p.name:lower())) and (not table.find(safeList, p.name:lower()) and (getplayerinfo(p.name).level >= playerMinLevel) and (getplayerinfo(p.name).guild == enemyGuild))
then
playsound('playeronscreen.wav')
say("*" ..yourCharName.. "* " .. p.name .. " (Lvl " .. getplayerinfo(p.name).level .. ", " .. getplayerinfo(p.name).guild .. ") is on screen.")
table.insert(seenList, p.name:lower())
wait(msgDelay)
end
end
To identify the player info you must first look at him (shift+mouse click), or add the player info manually in the Relations lists table, in Navigation tab.
(◣_◢)
Visit: Scripts - [Paid] | [Freebies] | [Showcase] ~ BlakW Market - [Tibia Gold] | [Tibia Coins] | [WindBot Licenses]