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

yalahar

Snow

New Member
Joined
Jan 16, 2008
Messages
381
Reaction score
0
So if the player is using the helmet of the deep he can go underwater...but i want to add more helmets...how can add any other?

Code:
function onStepIn(cid, item, position, lastPosition)
    if(item.actionid == 7812) then
        if(getPlayerSlotItem(cid, CONST_SLOT_HEAD).itemid == 5461) then
            doTeleportThing(cid, {x = 32950, y = 31181, z = 9})
            doCreatureSay(cid, "The vortex throws you out in this vicious place.", TALKTYPE_ORANGE_1)
            doSendMagicEffect({x = 32950, y = 31181, z = 9}, CONST_ME_WATERSPLASH)
        else
            doTeleportThing(cid, lastPosition)
            doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, "You must wear a helmet of the deep in order to dive.")
        end
    end
    return true
end
 
Back
Top