Hello
the following script is 100% made by myself i thought some people maybe wanted this....
first open actions.xml and put this in
red = changeable
save and close the file
then make a new file called "ancienthelmet.lua" it goes into /actions/scripts
red = changeable
and here is the script for the full helmet!
make a new file called "fullancient.lua" it goes into actions/scripts
red = changeable
blue = the item which you want to set as the Ruby!
That are the 2 scripts if there are still questions just ask!
yours Evil Hero,
the following script is 100% made by myself i thought some people maybe wanted this....
first open actions.xml and put this in
Code:
<action uniqueid="[COLOR="Red"]3330[/COLOR]" script="ancienthelmet.lua"/>
<action uniqueid="[COLOR="Red"]3331[/COLOR]" script="fullancient.lua"/>
save and close the file
then make a new file called "ancienthelmet.lua" it goes into /actions/scripts
Code:
--Ancient Helmet Quest by Evil Hero--
function onUse(cid, item, frompos, item2, topos)
piece1pos = {[COLOR="Red"]x=826, y=1088, z=7,[/COLOR] stackpos=1}
piece2pos = {[COLOR="Red"]x=827, y=1088, z=7,[/COLOR] stackpos=1}
piece3pos = {[COLOR="Red"]x=828, y=1088, z=7,[/COLOR] stackpos=1}
piece4pos = {[COLOR="Red"]x=829, y=1088, z=7,[/COLOR] stackpos=1}
piece5pos = {[COLOR="Red"]x=830, y=1088, z=7,[/COLOR] stackpos=1}
piece6pos = {[COLOR="Red"]x=831, y=1088, z=7,[/COLOR] stackpos=1}
piece7pos = {[COLOR="Red"]x=832, y=1088, z=7,[/COLOR] stackpos=1}
helmetpos = {[COLOR="Red"]x=829, y=1089, z=7,[/COLOR] stackpos=1}
getpiece1 = getThingfromPos(piece1pos)
getpiece2 = getThingfromPos(piece2pos)
getpiece3 = getThingfromPos(piece3pos)
getpiece4 = getThingfromPos(piece4pos)
getpiece5 = getThingfromPos(piece5pos)
getpiece6 = getThingfromPos(piece6pos)
getpiece7 = getThingfromPos(piece7pos)
gethelmet = getThingfromPos(helmetpos)
if item.uid == [COLOR="Red"]3330[/COLOR] and item.itemid == 1945 and getpiece1.itemid == 2335 and getpiece2.itemid == 2336 and getpiece3.itemid == 2337 and getpiece4.itemid == 2338 and getpiece5.itemid == 2339 and getpiece6.itemid == 2340 and getpiece7.itemid == 2341 then
doRemoveItem(getpiece1.uid,1)
doSendMagicEffect(piece1pos,23)
doRemoveItem(getpiece2.uid,1)
doSendMagicEffect(piece2pos,23)
doRemoveItem(getpiece3.uid,1)
doSendMagicEffect(piece3pos,23)
doRemoveItem(getpiece4.uid,1)
doSendMagicEffect(piece4pos,23)
doRemoveItem(getpiece5.uid,1)
doSendMagicEffect(piece5pos,23)
doRemoveItem(getpiece6.uid,1)
doSendMagicEffect(piece6pos,23)
doRemoveItem(getpiece7.uid,1)
doSendMagicEffect(piece7pos,23)
doCreateItem(2342,1,helmetpos)
doSendMagicEffect(gethelmet,23)
else
doPlayerSendTextMessage(cid,22,"You have to put the Pieces on the right Place ;)")
end
return 1
end
red = changeable
and here is the script for the full helmet!
make a new file called "fullancient.lua" it goes into actions/scripts
Code:
--Full Ancient Helmet Quest by Evil Hero--
function onUse(cid, item, frompos, item2, topos)
oldhelmetpos = {[COLOR="Red"]x=827, y=1083, z=7,[/COLOR] stackpos=1}
newhelmetpos = {[COLOR="Red"]x=829, y=1083, z=7,[/COLOR] stackpos=1}
rubypos = {[COLOR="Red"]x=831, y=1083, z=7,[/COLOR] stackpos=1}
getoldhelmet = getThingfromPos(oldhelmetpos)
getnewhelmet = getThingfromPos(newhelmetpos)
getruby = getThingfromPos(rubypos)
if item.uid == [COLOR="Red"]3331[/COLOR] and item.itemid == 1945 and getoldhelmet.itemid == 2342 and getruby.itemid == [COLOR="RoyalBlue"]2156[/COLOR] then
doRemoveItem(getoldhelmet.uid,1)
doSendMagicEffect(oldhelmetpos,23)
doRemoveItem(getruby.uid,1)
doSendMagicEffect(rubypos,23)
doCreateItem(2343,1,newhelmetpos)
doSendMagicEffect(getnewhelmet,23)
else
doPlayerSendTextMessage(cid,22,"You need a Big Ruby to incrase your Helmet!")
end
return 1
end
red = changeable
blue = the item which you want to set as the Ruby!
That are the 2 scripts if there are still questions just ask!
yours Evil Hero,