Ir para conteúdo

Uniao De Actions


TulioXD35

Posts Recomendados

Eu resolvi criar full helmet of the ancients systen mas devido o fato d q a small ruby(id 2147) e utilizada na action shrine n ta dando e eu to usando a ruby encantada(id 7760) pra forma o full helmet,+se um bom designer poder me ajudando unindo essas 2 scripts:

 

1° Fre Srine


--==--==--== Script by DarK ==--==--==--
--==--==--==--== ##### ==--==--==--==--

local CONFIG =
{
[2147]={effect = CONST_ME_MAGIC_RED, text = 'PFF', color = 183, idshrine = {7504,7505,7506,7507}, enchant=7760, mana = 300, soul = 2}, -- Fire
}


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

if CONFIG[item.itemid] == nil then
return FALSE
end
if isInArray(CONFIG[item.itemid].idshrine, item2.itemid) == TRUE then
if getPlayerMana(cid) >= CONFIG[item.itemid].mana then
if getPlayerSoul(cid) >= CONFIG[item.itemid].soul then
doPlayerAddSoul(cid,-CONFIG[item.itemid].soul)
doPlayerAddMana(cid,-CONFIG[item.itemid].mana)
doRemoveItem(item.uid,1)
doPlayerAddItem(cid,CONFIG[item.itemid].enchant,1)
doSendAnimatedText(topos,CONFIG[item.itemid].text,CONFIG[item.itemid].color)
doSendMagicEffect(topos,CONFIG[item.itemid].effect)
else
doPlayerSendCancel(cid,"Você não tem soul suficiente")
end
else
doPlayerSendCancel(cid,"Você não tem mana suficiente")
end
else
return FALSE
end
return TRUE
end[/code]

 

2° Full Helmet


--Enchanted Weapons by Kremus--

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

if item2.itemid == 2342 then
doRemoveItem(item.uid,1)
doTransformItem(item2.uid,2343)
doSendMagicEffect(topos,CONST_ME_MAGIC_RED)
else
doSendMagicEffect(topos,2)
doPlayerSendCancel(cid,"You can just to enchant some rare helmet.")
end
end

 

O script da uniao pod se chamar Fire Srine msm

Me ajdem plx,agradeço mt para quem poder me ajudara unir essas 2 actions...

Ajudem plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz!!!

Link para o comentário
Compartilhar em outros sites

  • 1 month later...
×
×
  • Criar Novo...