Ir para conteúdo

Featured Replies

Postado

Mude para este :

local reward = {
    item = 2152, --ITEM ID!
    count = 1 -- How many?
}
 
function onKill(cid, target, lastHit)
    if isPlayer(cid) and isPlayer(target) and lastHit then
      doPlayerAddItem(cid, reward.item, reward.count)
    if getPlayerIp(cid) == getPlayerIp(killer) then
        doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Você não ganha nada matando MC")
        return False
        end
return true
end

  • Respostas 14
  • Visualizações 1.3k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Tente fazer isso : "data/creaturescripts/scripts/kill.lua" function onKill(cid, target, lasthit) if ((isPlayer(cid) and isPlayer(target)) and (getPlayerIp(cid) ~= getPlayerIp(target))) then

  • ta ai a resolução 

Postado

Tente o seguinte então :

local reward = {
    item = 2152, --ITEM ID!
    count = 1 -- How many?
}
 
function onKill(cid, target, lastHit)
    if isPlayer(cid) and isPlayer(target) and lastHit then
     if ((isPlayer(cid) and isPlayer(target)) and (getPlayerIp(cid) ~= getPlayerIp(target))) then
      doPlayerAddItem(cid, reward.item, reward.count)
        end
return true
end
Postado

Tente fazer isso :

"data/creaturescripts/scripts/kill.lua"

function onKill(cid, target, lasthit)
    if ((isPlayer(cid) and isPlayer(target)) and (getPlayerIp(cid) ~= getPlayerIp(target))) then
	    doPlayerAddItem(cid, 2152, 1)
    end
    return true
end

"data/creaturescripts/creaturescripts.xml"

<event type="kill" name="killplayer" event="script" value="kill.lua"/>

"data/creaturescripts/scripts/login.lua"

registerCreatureEvent(cid, "killplayer")

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 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo