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

Legend MINIMAP

maciekslawny

New Member
Joined
Jul 10, 2012
Messages
23
Reaction score
0
Beztytulu_wnnwxnq.png


How to make Legend in minimap same like in the pictrue ? Thanks for help! :):) ++ rep
 
Code:
local config = {
    storage = 9432,
    version = 1, -- Increase this value after adding new marks, so player can step again and receive new map marks
    marks = {
        {mark = 5, pos = {x = 1000, y = 1000, z = 7}, desc = "forgottenl temple"},
        {mark = 7, pos = {x = 1025, y = 982, z = 7}, desc = "NPC!"},
        {mark = 3, pos = {x = 953, y = 982, z = 7}, desc = "Ship!"},
        {mark = 1, pos = {x = 666, y = 666, z = 6}}
    }
}

local f_addMark = doPlayerAddMapMark
if(not f_addMark) then f_addMark = doAddMapMark end

function onStepIn(cid, item, position, fromPosition)
    if(isPlayer(cid) ~= TRUE or getPlayerStorageValue(cid, config.storage) == config.version) then
        return
    end

    for _, m  in pairs(config.marks) do
        f_addMark(cid, m.pos, m.mark, m.desc ~= nil and m.desc or "")
    end
    setPlayerStorageValue(cid, config.storage, config.version)
    return TRUE
end
 
Back
Top