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

on 2.15

Snow

New Member
Joined
Jan 16, 2008
Messages
381
Reaction score
0
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition) 
    if item.aid == 40186 then 
        if(getPlayerPosition(cid).x == POS_CARPET_TELEPORT[1].x and getPlayerPosition(cid).y == POS_CARPET_TELEPORT[1].y) then 
            doTeleportThing(cid, POS_CARPET_TELEPORT[2]) 
            doSendMagicEffect(POS_CARPET_TELEPORT[2], CONST_ME_TELEPORT) 
        elseif(getPlayerPosition(cid).x == POS_CARPET_TELEPORT[2].x and getPlayerPosition(cid).y == POS_CARPET_TELEPORT[2].y) then 
            doTeleportThing(cid, POS_CARPET_TELEPORT[1]) 
            doSendMagicEffect(POS_CARPET_TELEPORT[1], CONST_ME_TELEPORT) 
        end 
    end 
return TRUE
end
Isn't working on 2.15 and it worked on 3.7 :(

Any fix?
 
Back
Top