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

Solved [7.4][OTX] house problem

Sebastian Ching

New Member
Joined
Dec 26, 2007
Messages
314
Reaction score
4
Location
Rio grande, rs, Brazil
Hello, im using 7.4 otx of Muitsui and im having problems with the house, the command leavehouse is sending the items to any unknown depot, I have been checking all the depots in every city and it is not in any city, can you help me?
thanks in advance


this is the script i have

Lua:
function onSay(cid, words, param, channel)
    if(not checkExhausted(cid, 666, 10)) then
        return false
    end

    local house = getHouseFromPos(getCreaturePosition(cid))
    if(not house) then
        doPlayerSendCancel(cid, "You are not inside a house.")
        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
        return false
    end

    local owner = getHouseInfo(house).owner
    if(owner ~= getPlayerGUID(cid) and (owner ~= getPlayerGuildId(cid) or getPlayerGuildLevel(cid) ~= GUILDLEVEL_LEADER)) then
        doPlayerSendCancel(cid, "You are not the owner of this house.")
        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
        return false
    end

    setHouseOwner(house, 0)
    doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_BLUE)
    return false
end
 
Last edited:
Hello, im using 7.4 otx of Muitsui and im having problems with the house, the command leavehouse is sending the items to any unknown depot, I have been checking all the depots in every city and it is not in any city, can you help me?
thanks in advance


this is the script i have

Lua:
function onSay(cid, words, param, channel)
    if(not checkExhausted(cid, 666, 10)) then
        return false
    end

    local house = getHouseFromPos(getCreaturePosition(cid))
    if(not house) then
        doPlayerSendCancel(cid, "You are not inside a house.")
        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
        return false
    end

    local owner = getHouseInfo(house).owner
    if(owner ~= getPlayerGUID(cid) and (owner ~= getPlayerGuildId(cid) or getPlayerGuildLevel(cid) ~= GUILDLEVEL_LEADER)) then
        doPlayerSendCancel(cid, "You are not the owner of this house.")
        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
        return false
    end

    setHouseOwner(house, 0)
    doSendMagicEffect(getCreaturePosition(cid), CONST_ME_MAGIC_BLUE)
    return false
end
First, have you set the correct town to all depots? In map editor, double click on depot then select the correct town.

Check house town too
 
thanks mano, for answer, but i have check it and for ex my city have id 12, and depot too, action id 112, is ok?
sorry my english

Edit: im checking and this server have a general depot, i have he same items in every citys :/
the old maps dont have the option for set city id ::::: (
 
Last edited:
Back
Top