Loot Para Premium

victormoaz
em Scripts

victormoaz

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 12/02/08Posts: 95Gênero: Masculino

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)

 

 

2cful5h.png

caotic

Afinal de contas,sou um mordomo e tanto
avatar
Infante
Infante

INFOS

Grupo: InfanteRegistrado: 04/03/11Posts: 1599Char no Tibia: No Have

E obrigatório que seja loot.

Ou o item pode ir automaticamente para bag do player?

Vodkartzin

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 06/11/12Posts: 46

é possível e simplesmente fácil de se fazer, me passa o id dos items

Aerdor

This world will never be what I expected ♫
avatar
Artesão
Artesão

INFOS

Grupo: ArtesãoRegistrado: 28/10/12Posts: 135

é possível e simplesmente fácil de se fazer, me passa o id dos items

 

Faz um exemplo ai com o id 2145 de small diamond

xproject+c%C3%B3pia.jpg

 

projeto.gif

Vodkartzin

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 06/11/12Posts: 46

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

victormoaz

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 12/02/08Posts: 95Gênero: Masculino

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)

 

 

2cful5h.png

Vodkartzin

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 06/11/12Posts: 46

sempre vai dropar um dos items ali acima

 

ou era pra ter chance de drops os dois?

victormoaz

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 12/02/08Posts: 95Gênero: Masculino

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)

 

 

2cful5h.png

Vodkartzin

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 06/11/12Posts: 46

pronto ja editei o script ali em cima

 

flw

victormoaz

avatar
Campones
Campones

INFOS

Grupo: CamponesRegistrado: 12/02/08Posts: 95Gênero: Masculino

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)

 

 

2cful5h.png

Foquinhaa

Eterno banido (agora com pip) -- :)
avatar
Banidos
Banidos

INFOS

Grupo: BanidosRegistrado: 05/09/11Posts: 178

Duvida sanada , reportado para moverem.

 

 

Atenciosamente Felipe