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

Baker Map

Mr Erimyth

Member
Joined
Apr 8, 2009
Messages
164
Reaction score
11
Location
Brazil
PLEASE ANYONE CAN HELP ME?
My MapSave Dont work.

It save map and dont back :(
i use actions to save and return.
And i need add No Save PzTile and houses - No teleport on Fight

Here my script
Code:
function onUse(cid, item, frompos, item2, topos)
RETURN_PLAYER_POS = {x = getPlayerStorageValue(cid, 10090), y = getPlayerStorageValue(cid, 10091), z = getPlayerStorageValue(cid, 10092)}

    if getPlayerStorageValue(cid, 19993) <= 0 then
        setPlayerStorageValue(cid, 10090, getCreaturePosition(cid).x)
            setPlayerStorageValue(cid, 10091, getCreaturePosition(cid).y)
                setPlayerStorageValue(cid, 10092, getCreaturePosition(cid).z)
                    doSendMagicEffect(getCreaturePosition(cid), 28)
                        doPlayerSendTextMessage(cid,22,"Você salvou sua Position. Use o Backer novamente para retornar!")
                            setPlayerStorageValue(cid, 19993, 1)
                                resetStatusInTime(cid)
                            return true
                        end
                       
local map = getPlayerSlotItem(cid,CONST_SLOT_AMMO)
    if getPlayerStorageValue(cid, 19993) > 0 and map.itemid == 12649 then
        doTeleportThing(cid, RETURN_PLAYER_POS)
            doSendMagicEffect(RETURN_PLAYER_POS,28)
                doSendAnimatedText(RETURN_PLAYER_POS,"Returned!",math.random(1,255))
                    doPlayerSendTextMessage(cid, 22, "Você retornou a sua posição! Foi retirado 1x Backer.")
                        setPlayerStorageValue(cid, 10090, 0)
                            setPlayerStorageValue(cid, 10091, 0)
                                setPlayerStorageValue(cid, 10092, 0)
                                    setPlayerStorageValue(cid, 19993, 0)
                                        if map.type > 1 then
                                            doChangeTypeItem(map.uid, map.type - 1)
                                        else
                                            doRemoveItem(map.uid,1)
                                                doPlayerSendTextMessage(cid,27,"Terminaram os seus 100x Backers, compre mais em nosso Shopping!")
                                            end
                                        end                         
                                    return true
                                end

PLEASE IT IS URGENT!!!
 
Last edited:
Back
Top