• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua [OTHire 7.72] Map Marks on Movement

massuco

Brazilian, sorry for my bad english XD
Joined
Feb 17, 2013
Messages
199
Solutions
8
Reaction score
22
Location
Brasil
I need help to add map marks when the player stepIn one sqm.

I have found this script. But it dont works on OTHire 0.0.3
Please help me. Any script similar compatible?
LUA:
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 = 1052, y = 1040, z = 7}, desc = "Main City Temple"},
        {mark = 7, pos = {x = 300, y = 200, z = 7}, desc = "NPC with tools!"},
        {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
 
I don't even think there is such functionality in 7.72. At least you wont find it in OTHire source.
 
Back
Top