Ir para conteúdo

[ Resolvido ] [enchant Gems]


dionatha14

Posts Recomendados

Iae galera, estou arrumando meu server com mapa global, e só falta uma coisa o script de encantar gems (aquela ki quando vc clika na gem e dps clika na shrine i encanta).

Se alguem tiver esse script e puder me passar, desde ja agradeço!

Vlws ^^

Link para o comentário
Compartilhar em outros sites

bom os scripts estao antigos e to sem tempo para diminuilos porem funcionam(para aprender como usar arrays para diminuir scripts consulte o mega tutorial do ta4e aqui)

 

aqui vao os scripts:

 

Fire:

 

Fire Gem(script daquele negociao grande que vc usa pra encantar as PEDRAS):

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

hp = math.random(299, 300)

 

if item2.itemid == 7507 then

doPlayerRemoveItem(cid,2147,1)

doPlayerAddItem(cid,7760,1)

doPlayerAddMana(cid,-hp)

doSendMagicEffect(topos, 13)

 

elseif item2.itemid == 7506 then

doPlayerRemoveItem(cid,2147,1)

doPlayerAddItem(cid,7760,1)

doPlayerAddMana(cid,-hp)

doSendMagicEffect(topos, 13)

 

elseif item2.itemid == 7505 then

doPlayerRemoveItem(cid,2147,1)

doPlayerAddItem(cid,7760,1)

doPlayerAddMana(cid,-hp)

doSendMagicEffect(topos, 13)

 

elseif item2.itemid == 7504 then

doPlayerRemoveItem(cid,2147,1)

doPlayerAddItem(cid,7760,1)

doPlayerAddMana(cid,-hp)

doSendMagicEffect(topos, 13)

 

 

else

return 0

end

return 1

end

 

Fire Gem Encantado(quando vc usa a pedra para encantar a arma):

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

 

if item2.itemid == 2383 then

doTransformItem(item2.uid,7744)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7760,1)

 

elseif item2.itemid == 7383 then

doTransformItem(item2.uid,7745)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7760,1)

 

elseif item2.itemid == 7384 then

doTransformItem(item2.uid,7746)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7760,1)

 

elseif item2.itemid == 7406 then

doTransformItem(item2.uid,7747)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7760,1)

 

elseif item2.itemid == 7402 then

doTransformItem(item2.uid,7748)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7760,1)

 

elseif item2.itemid == 2429 then

doTransformItem(item2.uid,7749)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7760,1)

 

elseif item2.itemid == 2430 then

doTransformItem(item2.uid,7750)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7760,1)

 

elseif item2.itemid == 7389 then

doTransformItem(item2.uid,7751)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7760,1)

 

elseif item2.itemid == 7380 then

doTransformItem(item2.uid,7752)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7760,1)

 

elseif item2.itemid == 2454 then

doTransformItem(item2.uid,7753)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7760,1)

 

elseif item2.itemid == 2423 then

doTransformItem(item2.uid,7754)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7760,1)

 

elseif item2.itemid == 2445 then

doTransformItem(item2.uid,7755)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7760,1)

 

elseif item2.itemid == 7415 then

doTransformItem(item2.uid,7756)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7760,1)

 

elseif item2.itemid == 7392 then

doTransformItem(item2.uid,7757)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7760,1)

 

elseif item2.itemid == 2391 then

doTransformItem(item2.uid,7758)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7760,1)

 

 

else

return 0

end

return 1

end

 

 

Energy:

 

Energy Gem(script daquele negociao grande que vc usa pra encantar as PEDRAS):

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

hp = math.random(299, 300)

 

if item2.itemid == 7513 then

doPlayerRemoveItem(cid,2150,1)

doPlayerAddItem(cid,7762,1)

doPlayerAddMana(cid,-hp)

doSendMagicEffect(topos, 13)

 

elseif item2.itemid == 7512 then

doPlayerRemoveItem(cid,2150,1)

doPlayerAddItem(cid,7762,1)

doPlayerAddMana(cid,-hp)

doSendMagicEffect(topos, 13)

 

elseif item2.itemid == 7514 then

doPlayerRemoveItem(cid,2150,1)

doPlayerAddItem(cid,7762,1)

doPlayerAddMana(cid,-hp)

doSendMagicEffect(topos, 13)

 

elseif item2.itemid == 7515 then

doPlayerRemoveItem(cid,2150,1)

doPlayerAddItem(cid,7762,1)

doPlayerAddMana(cid,-hp)

doSendMagicEffect(topos, 13)

 

 

else

return 0

end

return 1

end

 

Energy Gem Encantada(quando vc usa a pedra para encantar a arma):

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

 

if item2.itemid == 2383 then

doTransformItem(item2.uid,7869)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7762,1)

 

elseif item2.itemid == 7383 then

doTransformItem(item2.uid,7870)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7762,1)

 

elseif item2.itemid == 7384 then

doTransformItem(item2.uid,7871)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7762,1)

 

elseif item2.itemid == 7406 then

doTransformItem(item2.uid,7872)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7762,1)

 

elseif item2.itemid == 7402 then

doTransformItem(item2.uid,7873)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7762,1)

 

elseif item2.itemid == 2429 then

doTransformItem(item2.uid,7874)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7762,1)

 

elseif item2.itemid == 2430 then

doTransformItem(item2.uid,7875)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7762,1)

 

elseif item2.itemid == 7389 then

doTransformItem(item2.uid,7876)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7762,1)

 

elseif item2.itemid == 7380 then

doTransformItem(item2.uid,7877)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7762,1)

 

elseif item2.itemid == 2454 then

doTransformItem(item2.uid,7878)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7762,1)

 

elseif item2.itemid == 2423 then

doTransformItem(item2.uid,7879)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7762,1)

 

elseif item2.itemid == 2445 then

doTransformItem(item2.uid,7880)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7762,1)

 

elseif item2.itemid == 7415 then

doTransformItem(item2.uid,7881)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7762,1)

 

elseif item2.itemid == 7392 then

doTransformItem(item2.uid,7882)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7762,1)

 

elseif item2.itemid == 2391 then

doTransformItem(item2.uid,7883)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7762,1)

 

 

else

return 0

end

return 1

end

 

Ice:

 

Ice Gem(script daquele negociao grande que vc usa pra encantar as PEDRAS):

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

hp = math.random(299, 300)

 

if item2.itemid == 7511 then

doPlayerRemoveItem(cid,2146,1)

doPlayerAddItem(cid,7759,1)

doPlayerAddMana(cid,-hp)

doSendMagicEffect(topos, 13)

 

elseif item2.itemid == 7508 then

doPlayerRemoveItem(cid,2146,1)

doPlayerAddItem(cid,7759,1)

doPlayerAddMana(cid,-hp)

doSendMagicEffect(topos, 13)

 

elseif item2.itemid == 7509 then

doPlayerRemoveItem(cid,2146,1)

doPlayerAddItem(cid,7759,1)

doPlayerAddMana(cid,-hp)

doSendMagicEffect(topos, 13)

 

elseif item2.itemid == 7510 then

doPlayerRemoveItem(cid,2146,1)

doPlayerAddItem(cid,7759,1)

doPlayerAddMana(cid,-hp)

doSendMagicEffect(topos, 13)

 

 

else

return 0

end

return 1

end

 

Ice Gem Encantada(quando vc usa a pedra para encantar a arma):

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

 

if item2.itemid == 2383 then

doTransformItem(item2.uid,7763)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7759,1)

 

elseif item2.itemid == 7383 then

doTransformItem(item2.uid,7764)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7759,1)

 

elseif item2.itemid == 7384 then

doTransformItem(item2.uid,7765)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7759,1)

 

elseif item2.itemid == 7406 then

doTransformItem(item2.uid,7766)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7759,1)

 

elseif item2.itemid == 7402 then

doTransformItem(item2.uid,7767)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7759,1)

 

elseif item2.itemid == 2429 then

doTransformItem(item2.uid,7768)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7759,1)

 

elseif item2.itemid == 2430 then

doTransformItem(item2.uid,7769)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7759,1)

 

elseif item2.itemid == 7389 then

doTransformItem(item2.uid,7770)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7759,1)

 

elseif item2.itemid == 7380 then

doTransformItem(item2.uid,7771)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7759,1)

 

elseif item2.itemid == 2454 then

doTransformItem(item2.uid,7772)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7759,1)

 

elseif item2.itemid == 2423 then

doTransformItem(item2.uid,7773)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7759,1)

 

elseif item2.itemid == 2445 then

doTransformItem(item2.uid,7774)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7759,1)

 

elseif item2.itemid == 7415 then

doTransformItem(item2.uid,7775)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7759,1)

 

elseif item2.itemid == 7392 then

doTransformItem(item2.uid,7776)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7759,1)

 

elseif item2.itemid == 2391 then

doTransformItem(item2.uid,7777)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7759,1)

 

 

else

return 0

end

return 1

end

 

Terra:

 

Terra Gem(script daquele negociao grande que vc usa pra encantar as PEDRAS):

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

hp = math.random(299, 300)

 

if item2.itemid == 7519 then

doPlayerRemoveItem(cid,2149,1)

doPlayerAddItem(cid,7761,1)

doPlayerAddMana(cid,-hp)

doSendMagicEffect(topos, 13)

 

elseif item2.itemid == 7518 then

doPlayerRemoveItem(cid,2149,1)

doPlayerAddItem(cid,7761,1)

doPlayerAddMana(cid,-hp)

doSendMagicEffect(topos, 13)

 

elseif item2.itemid == 7516 then

doPlayerRemoveItem(cid,2149,1)

doPlayerAddItem(cid,7761,1)

doPlayerAddMana(cid,-hp)

doSendMagicEffect(topos, 13)

 

elseif item2.itemid == 7517 then

doPlayerRemoveItem(cid,2149,1)

doPlayerAddItem(cid,7761,1)

doPlayerAddMana(cid,-hp)

doSendMagicEffect(topos, 13)

 

 

else

return 0

end

return 1

end

 

Terra Gem Encantada(quando vc usa a pedra para encantar a arma):

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

 

if item2.itemid == 2383 then

doTransformItem(item2.uid,7854)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7761,1)

 

elseif item2.itemid == 7383 then

doTransformItem(item2.uid,7855)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7761,1)

 

elseif item2.itemid == 7384 then

doTransformItem(item2.uid,7856)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7761,1)

 

elseif item2.itemid == 7406 then

doTransformItem(item2.uid,7857)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7761,1)

 

elseif item2.itemid == 7402 then

doTransformItem(item2.uid,7858)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7761,1)

 

elseif item2.itemid == 2429 then

doTransformItem(item2.uid,7859)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7761,1)

 

elseif item2.itemid == 2430 then

doTransformItem(item2.uid,7860)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7761,1)

 

elseif item2.itemid == 7389 then

doTransformItem(item2.uid,7861)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7761,1)

 

elseif item2.itemid == 7380 then

doTransformItem(item2.uid,7862)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7761,1)

 

elseif item2.itemid == 2454 then

doTransformItem(item2.uid,7863)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7761,1)

 

elseif item2.itemid == 2423 then

doTransformItem(item2.uid,7864)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7761,1)

 

elseif item2.itemid == 2445 then

doTransformItem(item2.uid,7865)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7761,1)

 

elseif item2.itemid == 7415 then

doTransformItem(item2.uid,7866)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7761,1)

 

elseif item2.itemid == 7392 then

doTransformItem(item2.uid,7867)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7761,1)

 

elseif item2.itemid == 2391 then

doTransformItem(item2.uid,7868)

doDecayItem(item2.uid)

doPlayerRemoveItem(cid,7761,1)

 

 

else

return 0

end

return 1

end

 

bom eh isso ai :smile_positivo:

Editado por Tozao
Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...