KL
dúvida

Ajuda event

Por kleitonalan321, 09 de set. de 2013 em Scripts

ajuda event
resolvido
2
615
09 de setembro de 2013 às 18:38

function onStatsChange(cid, attacker, type, combat, value)
if type == 1 and getCreatureHealth(cid) <= value then
if isInRange(getThingPos(cid), arena.fromPos, arena.toPos) then
doCreatureAddHealth(cid, - getCreatureHealth(cid) + 1)
doCreatureAddMana(cid, - getCreatureMana(cid))
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, 'You have lost the Event.')
return false
end
end
return true
end
pode fechar topico arrumei ja

Editado Setembro 9 por kleitonalan321

BeekiB
09 de setembro de 2013 às 22:03

Tópico movido para a seção de dúvidas e pedidos resolvidos.