Gostaria de um script que fizesse com que 2 certos loot viesse em todos os monsters, porém apenas para player premium acc.
É possivel? Alguem sabe?
Rep+
Gostaria de um script que fizesse com que 2 certos loot viesse em todos os monsters, porém apenas para player premium acc.
É possivel? Alguem sabe?
Rep+
Trabalhos
PSDO - 24h - Exp Stages
*********No level pokemon******** *
*Aleatory Shiny
*Golden Arena (Meowth Coin)
*Saffari with saffari balls
*Duel System (Order)
*Npc Duel (Gym and others)
*Clan system with task and shinys clan
*Client with Pokebar and CooldownBar
*Rocket and Police System
*Map with constant change (Several Quests)
E obrigatório que seja loot.
Ou o item pode ir automaticamente para bag do player?
é possível e simplesmente fácil de se fazer, me passa o id dos items
monsterloot.lua
function onLogin(cid) if isPremium(cid) then registerCreatureEvent(cid, "LootAttack") end return true end function onCombat(cid, target) if isMonster(target) then registerCreatureEvent(target, "LootDeath") end return true end function onDeath(cid, corpse, deathList) local items = { -- itemid {id = 2148, amount = 50, chance= 50}, {id = 2160, amount = 5, chance = 80} } for _, loot in pairs(items) do if loot.chance >= math.random(1,100) then doAddContainerItem(corpse.uid, loot.id, loot.amount) end end return true end
creaturescript.xml
<event type="login" name="LootPlayer" event="script" value="monsterloot.lua"/> <event type="combat" name="LootAttack" event="script" value="monsterloot.lua"/> <event type="death" name="LootDeath" event="script" value="monsterloot.lua"/>
editei, faltou colocar soh pra premium kkkk
Obrigado Vodkartzin...
irei testar e dou rep +
Pergunta:
sempre q o player matar um monstro vai dropar? ou tem chance de não dropar?
Trabalhos
PSDO - 24h - Exp Stages
*********No level pokemon******** *
*Aleatory Shiny
*Golden Arena (Meowth Coin)
*Saffari with saffari balls
*Duel System (Order)
*Npc Duel (Gym and others)
*Clan system with task and shinys clan
*Client with Pokebar and CooldownBar
*Rocket and Police System
*Map with constant change (Several Quests)
sempre vai dropar um dos items ali acima
ou era pra ter chance de drops os dois?
Gostaria, se possivel, adicionar chance tambem...
Trabalhos
PSDO - 24h - Exp Stages
*********No level pokemon******** *
*Aleatory Shiny
*Golden Arena (Meowth Coin)
*Saffari with saffari balls
*Duel System (Order)
*Npc Duel (Gym and others)
*Clan system with task and shinys clan
*Client with Pokebar and CooldownBar
*Rocket and Police System
*Map with constant change (Several Quests)
pronto ja editei o script ali em cima
flw
Obrigado...
Rep+ assim que liberar aqui.
Trabalhos
PSDO - 24h - Exp Stages
*********No level pokemon******** *
*Aleatory Shiny
*Golden Arena (Meowth Coin)
*Saffari with saffari balls
*Duel System (Order)
*Npc Duel (Gym and others)
*Clan system with task and shinys clan
*Client with Pokebar and CooldownBar
*Rocket and Police System
*Map with constant change (Several Quests)
Duvida sanada , reportado para moverem.
Atenciosamente Felipe