Ir para conteúdo

Featured Replies

Postado
  • Autor

local monsters = {
["Demon"] = {90181, 10, {5954, 1}}, --["nome_do_monstro"] = {storage, quantidade_para_matar, {item_id, quantidade}},
}
function onDeath(cid, corpse, deathList)
local killer = deathList[1]
if #deathList > 1 then
killer = deathList[2]
end
if isMonster(cid) and isPlayer(killer) and monsters[getCreatureName(cid)] then
local monster = monsters[getCreatureName(cid)]
local storage = monster[1]
local value = getPlayerStorageValue(killer, storage) < 1 and 1 or getPlayerStorageValue(killer, storage) + 1
if value >= monster[2] then
local id = monster[3][1]
local count = monster[3][2]
setPlayerStorageValue(killer, storage, -1)
if isItemStackable(id) then
doAddContainerItem(corpse.uid, id, count)
else
for i = 1, count do
doAddContainerItem(corpse.uid, id, 1)
end
end
else
local left = monster[2] - value
setPlayerStorageValue(killer, storage, value)
doPlayerSendTextMessage(killer, MESSAGE_STATUS_CONSOLE_ORANGE, left.." "..getCreatureName(cid)..(left > 1 and "s" or "").." left to kill.")
end
end
return true
end

Editado por damiaotorres (veja o histórico de edições)

  • Respostas 21
  • Visualizações 2.9k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • data/creaturescripts/scripts, crie um arquivo com extensão .lua, nomeie-o bonusloot.lua e adicione o seguinte conteúdo: local monsters = {     ["Demon"] = {90181, 100, {item_id, count}},         --[

Postado
  • Autor

Deu certo :), mais tem como tira pra não ver esses 7 annihilons left to kill?

01:01 7 Annihilons left to kill.
01:01 Loot of an Annihilon: 2 crystal coins, 3 crystal coins, a crystal coin, 2 crystal coins, a crystal coin.
01:01 6 Annihilons left to kill.
01:01 Loot of an Annihilon: 3 crystal coins, 2 crystal coins, a crystal coin, 2 crystal coins, a crystal coin.
01:01 5 Annihilons left to kill.
01:01 Loot of an Annihilon: 3 crystal coins, 3 crystal coins, 2 crystal coins, 2 crystal coins, a crystal coin.

Postado

Claro, basta remover esta linha:

doPlayerSendTextMessage(killer, MESSAGE_STATUS_CONSOLE_ORANGE, left.." "..getCreatureName(cid)..(left > 1 and "s" or "").." left to kill.")

não respondo pms solicitando suporte em programação/scripting

  • 3 months later...
Postado

Boa noite eu  qeria saber se tem como remover corpse das vocation e tambem como editar sanguem dele

NTO PANZER SERVIDOR 24H 

1554689_1.png

http://narutopanzer.blogspot.com.br/

RATE  EXP 999

 

DBO SERVIDOR 24H 

1549171_1.png

http://dbowtf.ddns.net/

RATE EXP 400

 

 

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