Postado Setembro 12, 2019 5 anos Olá a todos, Gostaria de pedir que ajudassem a criar um script simples com o seguinte comportamento: Qualquer player em cima de um tile (posição definida), cura 5% da vida a cada 2 segundos Obrigado TibiaServers.org | A sua nova lista de servidores de Tibia [url=https://tibiaservers.org/server/evolution-ot][img]https://tibiaservers.org/dynamic_banners/76-ankrahmun.png[/img][/url]
Postado Setembro 12, 2019 5 anos Este tópico foi movido para a área correta. Esta é uma mensagem automática!Pedimos que leia as regras do fórum! Spoiler This topic has been moved to the correct area. This is an automated message!Please read the forum rules.
Postado Setembro 12, 2019 5 anos local tilePosition = {x = 100, y = 100, z = 7} local function tileHeal(uid) local pos = getThingPos(uid) if getThingPos(uid) == tilePosition then local heal = math.ceil(getCreatureMaxHealth(uid) / 20) doCreatureAddHealth(uid, heal) doSendMagicEffect(getThingPos(uid), CONST_ME_MAGIC_RED) addEvent(tileHeal, 2000, uid) end end function onStepIn(cid, item, pos, fromPosition) if isPlayer(cid) then addEvent(tileHeal, 2000, cid) end return true end STYLLER OT 2022
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.