Postado Fevereiro 7, 2015 10 anos 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 Fevereiro 7, 2015 10 anos por damiaotorres (veja o histórico de edições)
Postado Fevereiro 7, 2015 10 anos ..., você copiou errado. Muda: ocal monsters = { para: local monsters = { não respondo pms solicitando suporte em programação/scripting
Postado Fevereiro 7, 2015 10 anos 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 Fevereiro 7, 2015 10 anos 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
Postado Maio 28, 2015 10 anos Boa noite eu qeria saber se tem como remover corpse das vocation e tambem como editar sanguem dele NTO PANZER SERVIDOR 24H http://narutopanzer.blogspot.com.br/RATE EXP 999 DBO SERVIDOR 24H 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.