Ir para conteúdo

[7.92]surprise Bags


tibiaa4e

Posts Recomendados

Mais uma action 7.92

 

Elas são as surprise bag se da use elas dão itens

 

As azuis dão em loot de bichos de 70xp +

As vermelhas dão em loot de warlock,behmoth,hydra e bichos novos

As azuis tem como melhor loot piggy bank

as vermelha panda teddy e teddy bear

 

sem delongas

 

surprise bag blue.lua

--function by ta4e--

--for tibia 7.92--

function onUse(cid, item, frompos, item2, topos)

 

presente = math.random(1,11)

pos = getPlayerPosition(cid)

 

--surprise bag blue--

if presente == 1 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,2687,10) --cookie

doRemoveItem(item.uid,1)

 

elseif presente == 2 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,6394,1) --cream cake

doRemoveItem(item.uid,1)

 

elseif presente == 3 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,6280,1) --party cake

doRemoveItem(item.uid,1)

 

elseif presente == 4 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,6574,1) --bar of chocolate

doRemoveItem(item.uid,1)

 

elseif presente == 5 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,6578,1) -- party hat

doRemoveItem(item.uid,1)

 

elseif presente == 6 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,6575,1) -- red baloon

doRemoveItem(item.uid,1)

 

elseif presente == 7 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,6577,1) -- green baloon

doRemoveItem(item.uid,1)

 

elseif presente == 8 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,6569,3) -- candy

doRemoveItem(item.uid,1)

 

elseif presente == 9 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,6576,1) -- firework rocket

doRemoveItem(item.uid,1)

 

elseif presente == 10 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,6572,1) -- party trumpet

doRemoveItem(item.uid,1)

 

elseif presente == 11 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,2114,1) -- piggy bank

doRemoveItem(item.uid,1)

end

 

return 1

end

 

 

surprise bag red.lua

--function by ta4e--

--for tibia 7.92--

function onUse(cid, item, frompos, item2, topos)

 

presente = math.random(1,28)

pos = getPlayerPosition(cid)

 

if presente == 1 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,2152,10) --platinum coin

doRemoveItem(item.uid,1)

 

elseif presente == 2 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,2153,1) --violet gem

doRemoveItem(item.uid,1)

 

elseif presente == 3 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,5944,1) --soul orb

doRemoveItem(item.uid,1)

 

elseif presente == 4 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,2112,1) --teddy bear

doRemoveItem(item.uid,1)

 

elseif presente == 5 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,6568,1) -- panda teddy

doRemoveItem(item.uid,1)

 

elseif presente == 6 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,6566,1) --stuffed dragon

doRemoveItem(item.uid,1)

 

elseif presente == 7 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,2492,1) -- dsm

doRemoveItem(item.uid,1)

 

elseif presente == 8 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,2520,1) -- demon shield

doRemoveItem(item.uid,1)

 

elseif presente == 9 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,2195,1) -- boh

doRemoveItem(item.uid,1)

 

elseif presente == 10 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,2114,1) -- piggy bank

doRemoveItem(item.uid,1)

 

elseif presente == 11 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,6394,1) --cream cake

doRemoveItem(item.uid,1)

 

elseif presente == 12 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,6576,1) --fireworks

doRemoveItem(item.uid,1)

 

elseif presente == 13 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,6578,1) --party hat

doRemoveItem(item.uid,1)

 

elseif presente == 14 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,6574,1) --bar of chocolate

doRemoveItem(item.uid,1)

 

elseif presente == 15 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,2173,1) --aol

doRemoveItem(item.uid,1)

 

elseif presente == 16 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,6394,1) --royal helmet

doRemoveItem(item.uid,1)

 

elseif presente == 17 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,2152,10) --platinum coin

doRemoveItem(item.uid,1)

 

elseif presente == 18 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,2114,1) -- piggy bank

doRemoveItem(item.uid,1)

 

elseif presente == 19 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,6394,1) --cream cake

doRemoveItem(item.uid,1)

 

elseif presente == 20 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,6576,1) --fireworks

doRemoveItem(item.uid,1)

 

elseif presente == 21 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,6578,1) --party hat

doRemoveItem(item.uid,1)

 

elseif presente == 22 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,6574,1) --bar of chocolate

doRemoveItem(item.uid,1)

 

elseif presente == 23 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,2152,10) --platinum coin

doRemoveItem(item.uid,1)

 

elseif presente == 24 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,2114,1) -- piggy bank

doRemoveItem(item.uid,1)

 

elseif presente == 25 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,6394,1) --cream cake

doRemoveItem(item.uid,1)

 

elseif presente == 26 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,6576,1) --fireworks

doRemoveItem(item.uid,1)

 

elseif presente == 27 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,6578,1) --party hat

doRemoveItem(item.uid,1)

 

elseif presente == 28 then

doSendMagicEffect(pos,27)

doPlayerAddItem(cid,6574,1) --bar of chocolate

doRemoveItem(item.uid,1)

end

 

return 1

end

 

e em actions.xml add

<action itemid="6570" script="surprise bag blue.lua"/>

<action itemid="6571" script="surprise bag red.lua"/>

 

comentem

 

flws :hi:

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...