• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Action Hota and full Hota

Okay, I found a little error :p Check the post again, updated... Even found an error by you :p:p

Btw, you must add so the switch transforms... :)
 
Last edited:
Okay, great to hear :p If you don't understand how it works, tell me and I'll explain as detailed as possible ;)
 
Its not working with beta 3 :/ u can move switch even there is not any parts of helmet and u can't move it back :/
 
this isnt working...like i set all values in config correct, and it still says i have to put pieces in right places.
 
this isnt working...like i set all values in config correct, and it still says i have to put pieces in right places.
Have you noticed that this script is 2 years old? :p
 
change stackpos to 255 like this

piece1pos = {x=33195, y=32879, z=11, stackpos=255}

Code:
--Ancient Helmet Quest by Evil Hero--

function onUse(cid, item, frompos, item2, topos)
piece1pos = {x=33195, y=32879, z=11, stackpos=255}
piece2pos = {x=33196, y=32879, z=11, stackpos=255}
piece3pos = {x=33197, y=32879, z=11, stackpos=255}
piece4pos = {x=33198, y=32876, z=11, stackpos=255}
piece5pos = {x=33200, y=32879, z=11, stackpos=255}
piece6pos = {x=33201, y=32879, z=11, stackpos=255}
piece7pos = {x=33202, y=32879, z=11, stackpos=255}
helmetpos = {x=33198, y=32876, z=11, stackpos=255}
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 == 3330 and item.itemid == 1644 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
 
Last edited:
Back
Top