Ir para conteúdo

The Ancients Tomb Quest (Helmet)


Nottinghster

Posts Recomendados

Como meu amigo @tibiaa4e fez um Script gigantesco para o funcionamento do helmet, eu fiz um que uso no meu servidor que é muito pequeno e funciona perfeitamente (100%), segue abaixo o link do tópico do @tibiaa4e e o meu código:

 

Tópico @tibiaa4e:

http://www.xtibia.com/forum/topic/44507-quest-do-full-ancient-helmet-95-rl/

 

Meu código:

-- The Ancients Tomb Quest (Helmet) by Nottinghster
function onStepIn(cid, item, position)
if isPlayer(cid) == TRUE then 
local it = {} 
for i = 2335, 2341 do 
local _i = getTileItemById({x=33198, y=32876, z=11}, i).uid 
if _i > 0 then table.insert(it, _i) else return end 
end 
for _, v in ipairs(it) do 
doRemoveItem(v) 
end 
doCreateItem(2342, 1, {x=33198, y=32876, z=11}) 
doSendMagicEffect({x=33198, y=32876, z=11}, CONST_ME_FIREAREA) 
end 
end

 

Código do @Tibiaa4e

 

--Function by ta4e--
function onAddItem(moveitem, tileitem, pos)

--A quest é por ordemd e id 2335 1º 2341 ultimo  --

--id das peças--
item1 = 2335 --stackpos 8--
item2 = 2336 --stackpos 7--
item3 = 2337 --stackpos 6--
item4 = 2338 --stackpos 5--
item5 = 2339 --stackpos 4--
item6 = 2340 --stackpos 3--
item7 = 2341 --stackpos 2--

--id do helmet--
novo_itemid = 2342


helmetpos = {x=303, y=436, z=8, stackpos=255 }
helmet = getThingfromPos(helmetpos)

helmetpos1 = {x=303, y=436, z=8, stackpos=8 }
helmetpos2 = {x=303, y=436, z=8, stackpos=7 }
helmetpos3 = {x=303, y=436, z=8, stackpos=6 }
helmetpos4 = {x=303, y=436, z=8, stackpos=5 }
helmetpos5 = {x=303, y=436, z=8, stackpos=4 }
helmetpos6 = {x=303, y=436, z=8, stackpos=3}
helmetpos7 = {x=303, y=436, z=8, stackpos=2}

helmet1 = getThingfromPos(helmetpos1)
helmet2 = getThingfromPos(helmetpos2)
helmet3 = getThingfromPos(helmetpos3)
helmet4 = getThingfromPos(helmetpos4)
helmet5 = getThingfromPos(helmetpos5)
helmet6 = getThingfromPos(helmetpos6)
helmet7 = getThingfromPos(helmetpos7)

---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

   if moveitem.itemid == item7 and helmet1.itemid == item1 and helmet2.itemid == item2 and helmet3.itemid == item3 and helmet4.itemid == item4 and helmet5.itemid == item5 and helmet6.itemid == item6 then
       doRemoveItem(helmet1.uid, 1)
       doRemoveItem(helmet2.uid, 1)
       doRemoveItem(helmet3.uid, 1)
       doRemoveItem(helmet4.uid, 1)
       doRemoveItem(helmet5.uid, 1)
       doRemoveItem(helmet6.uid, 1)
       doRemoveItem(helmet7.uid, 1)
       doCreateItem(novo_itemid,1,helmetpos)
       doSendMagicEffect(pos, 6)

       elseif moveitem.itemid == item7 and helmet1.itemid == item2 and helmet2.itemid == item3 and helmet3.itemid == item1 and helmet4.itemid == item6 and helmet5.itemid == item4 and helmet6.itemid == item5 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item7 and helmet1.itemid == item6 and helmet2.itemid == item1 and helmet3.itemid == item2 and helmet4.itemid == item5 and helmet5.itemid == item3 and helmet6.itemid == item4 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item7 and helmet1.itemid == item3 and helmet2.itemid == item4 and helmet3.itemid == item5 and helmet4.itemid == item2 and helmet5.itemid == item6 and helmet6.itemid == item1 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item7 and helmet1.itemid == item4 and helmet2.itemid == item5 and helmet3.itemid == item6 and helmet4.itemid == item3 and helmet5.itemid == item1 and helmet6.itemid == item2 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item7 and helmet1.itemid == item5 and helmet2.itemid == item6 and helmet3.itemid == item4 and helmet4.itemid == item1 and helmet5.itemid == item2 and helmet6.itemid == item3 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)
end
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

   if moveitem.itemid == item6 and helmet1.itemid == item1 and helmet2.itemid == item2 and helmet3.itemid == item3 and helmet4.itemid == item4 and helmet5.itemid == item5 and helmet6.itemid == item7 then
       doRemoveItem(helmet1.uid, 1)
       doRemoveItem(helmet2.uid, 1)
       doRemoveItem(helmet3.uid, 1)
       doRemoveItem(helmet4.uid, 1)
       doRemoveItem(helmet5.uid, 1)
       doRemoveItem(helmet6.uid, 1)
       doRemoveItem(helmet7.uid, 1)
       doCreateItem(novo_itemid,1,helmetpos)
       doSendMagicEffect(pos, 6)

       elseif moveitem.itemid == item6 and helmet1.itemid == item2 and helmet2.itemid == item3 and helmet3.itemid == item1 and helmet4.itemid == item7 and helmet5.itemid == item4 and helmet6.itemid == item5 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item6 and helmet1.itemid == item7 and helmet2.itemid == item1 and helmet3.itemid == item2 and helmet4.itemid == item5 and helmet5.itemid == item3 and helmet6.itemid == item4 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item6 and helmet1.itemid == item3 and helmet2.itemid == item4 and helmet3.itemid == item5 and helmet4.itemid == item2 and helmet5.itemid == item7 and helmet6.itemid == item1 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item6 and helmet1.itemid == item4 and helmet2.itemid == item5 and helmet3.itemid == item7 and helmet4.itemid == item3 and helmet5.itemid == item1 and helmet6.itemid == item2 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item6 and helmet1.itemid == item5 and helmet2.itemid == item7 and helmet3.itemid == item4 and helmet4.itemid == item1 and helmet5.itemid == item2 and helmet6.itemid == item3 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

end
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

   if moveitem.itemid == item5 and helmet1.itemid == item1 and helmet2.itemid == item2 and helmet3.itemid == item3 and helmet4.itemid == item4 and helmet5.itemid == item6 and helmet6.itemid == item7 then
       doRemoveItem(helmet1.uid, 1)
       doRemoveItem(helmet2.uid, 1)
       doRemoveItem(helmet3.uid, 1)
       doRemoveItem(helmet4.uid, 1)
       doRemoveItem(helmet5.uid, 1)
       doRemoveItem(helmet6.uid, 1)
       doRemoveItem(helmet7.uid, 1)
       doCreateItem(novo_itemid,1,helmetpos)
       doSendMagicEffect(pos, 6)

       elseif moveitem.itemid == item5 and helmet1.itemid == item2 and helmet2.itemid == item3 and helmet3.itemid == item1 and helmet4.itemid == item7 and helmet5.itemid == item4 and helmet6.itemid == item6 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item5 and helmet1.itemid == item7 and helmet2.itemid == item1 and helmet3.itemid == item2 and helmet4.itemid == item6 and helmet5.itemid == item3 and helmet6.itemid == item4 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item5 and helmet1.itemid == item3 and helmet2.itemid == item4 and helmet3.itemid == item6 and helmet4.itemid == item2 and helmet5.itemid == item7 and helmet6.itemid == item1 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item5 and helmet1.itemid == item4 and helmet2.itemid == item6 and helmet3.itemid == item7 and helmet4.itemid == item3 and helmet5.itemid == item1 and helmet6.itemid == item2 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item5 and helmet1.itemid == item6 and helmet2.itemid == item7 and helmet3.itemid == item4 and helmet4.itemid == item1 and helmet5.itemid == item2 and helmet6.itemid == item3 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

end
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

   if moveitem.itemid == item4 and helmet1.itemid == item1 and helmet2.itemid == item2 and helmet3.itemid == item3 and helmet4.itemid == item4 and helmet5.itemid == item6 and helmet6.itemid == item7 then
       doRemoveItem(helmet1.uid, 1)
       doRemoveItem(helmet2.uid, 1)
       doRemoveItem(helmet3.uid, 1)
       doRemoveItem(helmet4.uid, 1)
       doRemoveItem(helmet5.uid, 1)
       doRemoveItem(helmet6.uid, 1)
       doRemoveItem(helmet7.uid, 1)
       doCreateItem(novo_itemid,1,helmetpos)
       doSendMagicEffect(pos, 6)

       elseif moveitem.itemid == item4 and helmet1.itemid == item2 and helmet2.itemid == item3 and helmet3.itemid == item1 and helmet4.itemid == item7 and helmet5.itemid == item5 and helmet6.itemid == item6 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item4 and helmet1.itemid == item7 and helmet2.itemid == item1 and helmet3.itemid == item2 and helmet4.itemid == item6 and helmet5.itemid == item3 and helmet6.itemid == item5 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item4 and helmet1.itemid == item3 and helmet2.itemid == item5 and helmet3.itemid == item6 and helmet4.itemid == item2 and helmet5.itemid == item7 and helmet6.itemid == item1 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item4 and helmet1.itemid == item5 and helmet2.itemid == item6 and helmet3.itemid == item7 and helmet4.itemid == item3 and helmet5.itemid == item1 and helmet6.itemid == item2 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item4 and helmet1.itemid == item6 and helmet2.itemid == item7 and helmet3.itemid == item5 and helmet4.itemid == item1 and helmet5.itemid == item2 and helmet6.itemid == item3 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

end
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

   if moveitem.itemid == item3 and helmet1.itemid == item1 and helmet2.itemid == item2 and helmet3.itemid == item5 and helmet4.itemid == item4 and helmet5.itemid == item6 and helmet6.itemid == item7 then
       doRemoveItem(helmet1.uid, 1)
       doRemoveItem(helmet2.uid, 1)
       doRemoveItem(helmet3.uid, 1)
       doRemoveItem(helmet4.uid, 1)
       doRemoveItem(helmet5.uid, 1)
       doRemoveItem(helmet6.uid, 1)
       doRemoveItem(helmet7.uid, 1)
       doCreateItem(novo_itemid,1,helmetpos)
       doSendMagicEffect(pos, 6)

       elseif moveitem.itemid == item3 and helmet1.itemid == item2 and helmet2.itemid == item5 and helmet3.itemid == item1 and helmet4.itemid == item7 and helmet5.itemid == item4 and helmet6.itemid == item6 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item3 and helmet1.itemid == item7 and helmet2.itemid == item1 and helmet3.itemid == item2 and helmet4.itemid == item6 and helmet5.itemid == item5 and helmet6.itemid == item4 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item3 and helmet1.itemid == item5 and helmet2.itemid == item4 and helmet3.itemid == item6 and helmet4.itemid == item2 and helmet5.itemid == item7 and helmet6.itemid == item1 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item3 and helmet1.itemid == item4 and helmet2.itemid == item6 and helmet3.itemid == item7 and helmet4.itemid == item5 and helmet5.itemid == item1 and helmet6.itemid == item2 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item3 and helmet1.itemid == item6 and helmet2.itemid == item7 and helmet3.itemid == item4 and helmet4.itemid == item1 and helmet5.itemid == item2 and helmet6.itemid == item5 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

end
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

   if moveitem.itemid == item2 and helmet1.itemid == item1 and helmet2.itemid == item5 and helmet3.itemid == item3 and helmet4.itemid == item4 and helmet5.itemid == item6 and helmet6.itemid == item7 then
       doRemoveItem(helmet1.uid, 1)
       doRemoveItem(helmet2.uid, 1)
       doRemoveItem(helmet3.uid, 1)
       doRemoveItem(helmet4.uid, 1)
       doRemoveItem(helmet5.uid, 1)
       doRemoveItem(helmet6.uid, 1)
       doRemoveItem(helmet7.uid, 1)
       doCreateItem(novo_itemid,1,helmetpos)
       doSendMagicEffect(pos, 6)

       elseif moveitem.itemid == item2 and helmet1.itemid == item5 and helmet2.itemid == item3 and helmet3.itemid == item1 and helmet4.itemid == item7 and helmet5.itemid == item4 and helmet6.itemid == item6 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item2 and helmet1.itemid == item7 and helmet2.itemid == item1 and helmet3.itemid == item5 and helmet4.itemid == item6 and helmet5.itemid == item3 and helmet6.itemid == item4 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item2 and helmet1.itemid == item3 and helmet2.itemid == item4 and helmet3.itemid == item6 and helmet4.itemid == item5 and helmet5.itemid == item7 and helmet6.itemid == item1 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item2 and helmet1.itemid == item4 and helmet2.itemid == item6 and helmet3.itemid == item7 and helmet4.itemid == item3 and helmet5.itemid == item1 and helmet6.itemid == item5 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item2 and helmet1.itemid == item6 and helmet2.itemid == item7 and helmet3.itemid == item4 and helmet4.itemid == item1 and helmet5.itemid == item5 and helmet6.itemid == item3 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

end
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
   if moveitem.itemid == item1 and helmet1.itemid == item5 and helmet2.itemid == item2 and helmet3.itemid == item3 and helmet4.itemid == item4 and helmet5.itemid == item6 and helmet6.itemid == item7 then
       doRemoveItem(helmet1.uid, 1)
       doRemoveItem(helmet2.uid, 1)
       doRemoveItem(helmet3.uid, 1)
       doRemoveItem(helmet4.uid, 1)
       doRemoveItem(helmet5.uid, 1)
       doRemoveItem(helmet6.uid, 1)
       doRemoveItem(helmet7.uid, 1)
       doCreateItem(novo_itemid,1,helmetpos)
       doSendMagicEffect(pos, 6)

       elseif moveitem.itemid == item1 and helmet1.itemid == item2 and helmet2.itemid == item3 and helmet3.itemid == item5 and helmet4.itemid == item7 and helmet5.itemid == item4 and helmet6.itemid == item6 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item1 and helmet1.itemid == item7 and helmet2.itemid == item5 and helmet3.itemid == item2 and helmet4.itemid == item6 and helmet5.itemid == item3 and helmet6.itemid == item4 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item1 and helmet1.itemid == item3 and helmet2.itemid == item4 and helmet3.itemid == item6 and helmet4.itemid == item2 and helmet5.itemid == item7 and helmet6.itemid == item5 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item1 and helmet1.itemid == item4 and helmet2.itemid == item6 and helmet3.itemid == item7 and helmet4.itemid == item3 and helmet5.itemid == item5 and helmet6.itemid == item2 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

           elseif moveitem.itemid == item1 and helmet1.itemid == item6 and helmet2.itemid == item7 and helmet3.itemid == item4 and helmet4.itemid == item5 and helmet5.itemid == item2 and helmet6.itemid == item3 then
           doRemoveItem(helmet1.uid, 1)
           doRemoveItem(helmet2.uid, 1)
           doRemoveItem(helmet3.uid, 1)
           doRemoveItem(helmet4.uid, 1)
           doRemoveItem(helmet5.uid, 1)
           doRemoveItem(helmet6.uid, 1)
           doRemoveItem(helmet7.uid, 1)
           doCreateItem(novo_itemid,1,helmetpos)
           doSendMagicEffect(pos, 6)

end
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

return 1
end

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...