goto movements create a new script an put the name of ancienthelmet and put this inside
then goto movements.xml and put in
bug if u donot put the items in order it disapear that are in the right order and the others stay in ther with out a cahnges
PHP:
function onStepIn(cid, item, pos)
piezaspos = {x=1198, y=1079, z=8, stackpos=7}
piezaspos2 = {x=1198, y=1079, z=8, stackpos=6}
piezaspos3 = {x=1198, y=1079, z=8, stackpos=5}
piezaspos4 = {x=1198, y=1079, z=8, stackpos=4}
piezaspos5 = {x=1198, y=1079, z=8, stackpos=3}
piezaspos6 = {x=1198, y=1079, z=8, stackpos=2}
piezaspos7 = {x=1198, y=1079, z=8, stackpos=1}
getpieza1 = getThingfromPos(piezaspos)
getpieza2 = getThingfromPos(piezaspos2)
getpieza3 = getThingfromPos(piezaspos3)
getpieza4 = getThingfromPos(piezaspos4)
getpieza5 = getThingfromPos(piezaspos5)
getpieza6 = getThingfromPos(piezaspos6)
getpieza7 = getThingfromPos(piezaspos7)
if isPlayer(cid) == TRUE then
if item.uid == 23420 and item.itemid == 416 then
if getpieza1.itemid == 2335 then
doRemoveItem(getpieza1.uid,1)
if getpieza2.itemid == 2336 then
doRemoveItem(getpieza2.uid,1)
if getpieza3.itemid == 2337 then
doRemoveItem(getpieza3.uid,1)
if getpieza4.itemid == 2338 then
doRemoveItem(getpieza4.uid,1)
if getpieza5.itemid == 2339 then
doRemoveItem(getpieza5.uid,1)
if getpieza6.itemid == 2340 then
doRemoveItem(getpieza6.uid,1)
if getpieza7.itemid == 2341 then
doRemoveItem(getpieza7.uid,1)
doCreateItem(2342,1,piezaspos)
doSendMagicEffect(pos, CONST_ME_FIREAREA)
end
else
doPlayerSendCancel(cid, "The items are not on the correct spots.")
return TRUE
end
end
end
end
end
end
end
end
end
PHP:
<movevent type="StepIn" uniqueid="23420" event="script" value="ancienthelmet.lua"/>
bug if u donot put the items in order it disapear that are in the right order and the others stay in ther with out a cahnges
Last edited: