function onSay(player, words, param)
-- Warunek dostępności dla wszystkich graczy
--if not player:getGroup():getAccess() then
-- return true
--end
-- Warunek niedostępności czaru w trakcie walki
if player:getCondition(CONDITION_INFIGHT) then
player:sendCancelMessage("Nie możesz użyć tego czaru podczas walki.")
return false
end
local target = Creature(param)
if target then
-- Warunek wymagający minimum 50% many u celu
if target:getMana() >= target:getMaxMana() * 0.5 then
player:teleportTo(target:getPosition())
else
player:sendCancelMessage("Gracz do którego chcesz się teleportować ma mniej niż 50% many.")
end
else
player:sendCancelMessage("Nie odnaleziono stworzenia.")
end
return false
end