usa getCreatureTarget,alem de fase isso ele ja vai pega qual é o target.
7
778
27 de agosto de 2012 às 23:11
info
Group: Marquês
Joined: 22/07/12
Posts: 1.1k
Reputation: +400
Gender: Masculino
Tibia Character: Luck Oake

27 de agosto de 2012 às 23:14
Não, já tentei e não funcionou com o getCreatureTarget.
info
Group: Conde
Joined: 03/01/12
Posts: 884
Reputation: +233
Tibia Character: Segredo

27 de agosto de 2012 às 23:15
usa esse
if (getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE) then
info
Group: Marquês
Joined: 22/07/12
Posts: 1.1k
Reputation: +400
Gender: Masculino
Tibia Character: Luck Oake

27 de agosto de 2012 às 23:17
@notle2012
Não posso usar esse, pois o player pode estar com Battle sem ter target.
info
Group: Marquês
Joined: 02/08/12
Posts: 1k
Reputation: +234
Tibia Character: Maurolkit

27 de agosto de 2012 às 23:22
if getCreatureTarget(cid) ~= 0 then
Exemplo
function onSay(cid, words, param) if getCreatureTarget(cid) ~= 0 then doPlayerSendTextMessage(cid, 27, "Você está atacando o [ " .. getCreatureName(getCreatureTarget(cid)) .. " ] . ") end return doPlayerSendTextMessage(cid, 28, "Você não tem target") end
Edited Agosto 27 by Skymagnum




info
Group: Marquês
Joined: 22/07/12
Posts: 1.1k
Reputation: +400
Gender: Masculino
Tibia Character: Luck Oake
Existe alguma função que informe se o player possui ou não um target?
Tipo:
Procurei nas funções do meu server e não achei nada a respeito.
Edited Agosto 27 by LuckOake