Acho que o erro é nessa tag :
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
info
Grupo: Marquês
Registrado: 25/09/10
Posts: 1.3k
Reputação: +446
Gênero: Masculino

Acho que o erro é nessa tag :
function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end
Bump!
info
Grupo: Príncipe
Registrado: 19/08/10
Posts: 4k
Reputação: +1.1k
Gênero: Masculino

amigo upar topicos eh contra as regras do forum, por favor nao repita isso!
tente trocar esse teu script por esse..
function onDeath(cid, corpse, deathList)
local pid = deathList[1]
if isPlayer(cid) and isPlayer(pid) then
if ((isInParty(cid) and isInParty(pid)) and (getPlayerParty(pid) == getPlayerParty(cid))) then
broadcastMessage("**** has killed ".. getCreatureName(cid).." (Justified)", MESSAGE_STATUS_WARNING)
elseif getCreatureSkullType(pid) == 4 or getCreatureSkullType(pid) == 3 and getCreatureSkullType(cid) == 0 then
broadcastMessage("**** has killed ".. getCreatureName(cid).." (UnJustified)",MESSAGE_STATUS_WARNING)
elseif getCreatureSkullType(cid) == 3 or getCreatureSkullType(cid) == 4 then
broadcastMessage("**** has killed ".. getCreatureName(cid).." (Justified)",MESSAGE_STATUS_WARNING)
end
end
return TRUE
end
nao esquece de trocar na tag tb para "death" q nem a aki de baixo \/
<event type="death" name="xxxx" event="script" value="yyyy.lua"/>
mano da onde tu tiro isso? ![]()
Editado Dezembro 23 por Slicer
não funciona, não dá nenhum erro, mas não deixar qualquer mensagem
info
Grupo: Príncipe
Registrado: 19/08/10
Posts: 4k
Reputação: +1.1k
Gênero: Masculino

mudase a tag? e o script ta registrado no login.lua?
info
Grupo: Campones
Registrado: 12/02/11
Posts: 30
Reputação: +15
function onKill(cid, target) if isPlayer(target) == TRUE then if ((isInParty(target) and isInParty(cid)) and (getPlayerParty(cid) == getPlayerParty(target))) and isPlayer(target)then broadcastMessage("**** has killed ".. getCreatureName(target).." (Justified)",MESSAGE_STATUS_WARNING) elseif getCreatureSkullType(cid) == 4 or getCreatureSkullType(cid) == 3 and getCreatureSkullType(target) == 0 and isPlayer(target)then broadcastMessage("**** has killed ".. getCreatureName(target).." (UnJustified)",MESSAGE_STATUS_WARNING) elseif getCreatureSkullType(target) == 3 or getCreatureSkullType(target) == 4 and isPlayer(target) then broadcastMessage("**** has killed ".. getCreatureName(target).." (Justified)",MESSAGE_STATUS_WARNING) end end return TRUE endEu tenho esse script e ele funciona bem, o problema é este.
Se três jogadores me matar .. três vezes a mensagem.
Se eu matar seis jogadores de seis vezes a mensagem para fora.
Eu quero apenas ir uma vez que você ver um para cada jogador.
Editado Dezembro 22 por Elexonic