Ir para conteúdo

Featured Replies

Postado
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

 

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96k
  • Posts 512.6k

Informação Importante

Confirmação de Termo