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

Kick player from the house

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
Hi everyone, I was thinking in make a system but I got stucked with a function.

What's the function to remove the house from the player if he have it in town_id 5,6,7, and send the items from the house to the his depot? It's suppost to be in LUA.

Thanks.
 
Last edited:
Code:
if player:getHouse() then
        local house = player:getHouse()
        if isInArray({5, 6, 7}, house:getTown():getId()) then
            house:setOwnerGuid(0)
        end
    end
 
Back
Top