Ir para conteúdo

Quest Do Full Ancient Helmet 95% Rl


tibiaa4e

Posts Recomendados

UPTADE AGORA 95% QUASE TODAS AS COMBINAÇÕES FUNFAM

 

 

hota.lua

--Function by ta4e--

function onAddItem(moveitem, tileitem, pos)

 

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

 

--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

 

e em movements.xml add:

<movevent event="AddItem" tileitem="1" uniqueid="uid" script="hota.lua" />

 

o lugar q for a "base" devera ter a uid

 

comentem

 

flws

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

HiHo!

 

great script

irá ajudar mta gente que está atráz dele...

:]

sinceramente um rpg sem essa action num eh um bom rpg... :~~

vlw por postar aki ;*

 

FlW

CyA!

Link para o comentário
Compartilhar em outros sites

bem o script eh enorme, mas eh um dos script da quest do HOTA mais perfeitos que ja vi, nao importate o tamanho desde que funcione..

parabens ;)

Link para o comentário
Compartilhar em outros sites

Tibiaa4e

 

Sempre evoluindo.

 

Um pouco grande nao???

 

o.O

 

Mas ficou muito bom. Eu fiquei olhando...

 

O que seria essas posiçoes

 

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}

 

???

Link para o comentário
Compartilhar em outros sites

Uia.. Hail ta4e =)

Sempre inovando.. :D

escript realmente mt bom..

 

Porem, eu tenhu uma duvida (ha seculos)...

O q seria esse stackpos ?!?!

Nunk entendi eles.. =(

 

//Suboras

Link para o comentário
Compartilhar em outros sites

ai ai isso é ###### vou tentar explicar

 

imagine um chão de grama,com uma mesa em cima,e uma backpack em cima

 

grama =stackpos 0

mesa = stackpos 1

backpack =stackpos 2

 

agora com uma runa em cima da backpack

 

grama =stackpos 0

mesa = stackpos 1

backpack =stackpos 3

runa = stackpos 2

 

Assim

o chão sempre é 0

o q tiver em cima do chão tbm sempre 1

+ se num tiver chão a mesa seria 0

 

+ como kase sempre tem então 1 e 0 sempre serão 1 e 0

 

Ai depois se tiver apenas uma coisa ser stackpos 2

se tiver + de 1 começa a contar 2 de cima ate o infinito :S

e o 1 e 0 nunca mudam

 

255 é o ultimo stackpos (bom se qusier fazer algo q sempre vai mexer com o ultimo)

254 mexe com fields

253 com players ou monstros :S

 

espero q tenha entendido +- assim

eu aprendi isso axo q a 1 mês atras

mta gente num sabe :S

 

 

flws

Link para o comentário
Compartilhar em outros sites

  • 4 years later...

oi para todo testei varias forme de faser esse script funcionar mais nao consegui colokei o uid na mesa colokei os items stackpos 2 ate o stackpos 7 na ordem certa colokei ate no pisso antes da messa >>22:13 You see a stone tile.

It seems to be a switch.

ItemID: [416], UniqueID: [23420].

Position: [X: 1146] [Y: 999] [Z: 8].<<<< nao funciono nenhum geito uso tfs 0.4 eu so queru um script que junte todas as pessa dessa quest hota ou remova todos e me de o item '2342' se alguem puder me ajuda vou agradeçer muito como sempre xD

Link para o comentário
Compartilhar em outros sites

cara dei diminuida aki mais fais um tempo que n mexo com script, então ve se tem algum erro ae(aki nem da pra testa,to sem nenhum ot pra testa,e to com preguisa de baixa)

e tbm adicionei uma mesagem pra mostra os items que faltam,caso falte. outra coisa essa quest n tem storage se pode faser quantas veses quise?

 

--Function by ta4e--

function onAddItem(moveitem, tileitem, pos, cid)

 

items = {2335, 2336, 2337, 2338, 2339, 2340, 2341 }

 

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}

 

h1 = getThingfromPos(helmetpos1)

h2 = getThingfromPos(helmetpos2)

h3 = getThingfromPos(helmetpos3)

h4 = getThingfromPos(helmetpos4)

h5 = getThingfromPos(helmetpos5)

h6 = getThingfromPos(helmetpos6)

h7 = getThingfromPos(helmetpos7)

 

table = {h1 ,h2 , h3 , h4 ,h5 ,h6 , h7 }

x = 0

i = 1

while i <= 7 do

if table.find(table, items) then

x = x+1

else

str = ..""..getItemNameById(items)..","

end

i = i+1

end

 

if x == 7 then

doCreateItem(novo_itemid,1,helmetpos)

doSendMagicEffect(pos, 6)

for k = 1 ,7 do

doRemoveItem(table.uid, 1)

end

elseif x == 6 then

doPlayerSendTextMessage(cid, 1, "está faltamdo o item "..str)

elseif x >= 1 and x < 6 then

doPlayerSendTextMessage(cid, 1, "estão faltamdo os items "..str)

end

return 1

end

 

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

  • 1 year later...

Desculpe em REVIVE o topico mais é algo que tou querendo por no meu OT...

 

Uma duvida... Nao e Posivel Colocar 7 itens no altar stone ID = 1642 apenas 6.

tem como Muda isso? ou entao mudar o Item do altar?

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...