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

Requesting, Update this script

ontit

New Member
Joined
Jul 20, 2008
Messages
87
Reaction score
3
Hello everyone. While I was hanging around, i saw helmet of the ancient quest script that made by Colandus and Evil Hero 3 years ago. I wonder if anyone update it for 0.3.6pl.
Here is the script:
PHP:
--Ancient Helmet Quest by Evil Hero--  

-->>CONFIG<<--  
local switchUniqueid = 3330  
local piecePositions = {  
    {x=826, y=1088, z=7},  
    {x=827, y=1088, z=7},  
    {x=828, y=1088, z=7},  
    {x=829, y=1088, z=7},  
    {x=830, y=1088, z=7},  
    {x=831, y=1088, z=7},  
    {x=832, y=1088, z=7}  
}  
local helmetPos = {x=829, y=1089, z=7}  
-->>CONFIG<<--  

function onUse(cid, item, frompos, item2, topos)  
    local foundItems = {}  
    local getPieces = {}  
    for i=1, #piecePositions do  
        piecePositions[i].stackpos = 1  
        getPieces[i] = getThingfromPos(piecePositions[i])  
        foundItems[i] = getPieces[i].itemid  
    end  
    if (item.uid == switchUniqueid and item.itemid == 1945) then  
        for i=2335, 2341 do  
            if (isInArray(foundItems, i) ~= TRUE) then  
                doPlayerSendTextMessage(cid, 22, "You need to place all needed pieces on the basins.")  
                return FALSE  
            end  
        end  
        for i=1, #piecePositions do  
            doRemoveItem(getPieces[i].uid, 1)  
            doSendMagicEffect(piecePositions[i], 23)  
        end  
        doCreateItem(2342, 1, helmetPos)  
        doSendMagicEffect(helmetPos, 23)  
    end  
    return TRUE  
end

Kind Regards
 
Back
Top