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

Lua Player kill boss and get house for free

Icaraii

Well-Known Member
Joined
Jan 5, 2020
Messages
469
Solutions
1
Reaction score
58
Hi guys,

I would like a script that when the player kill a specific boss (let's say it is orshabaal) the player will be rewarded with a specific house for free, is it possible? The house will be owned by the player for ever for no cost.
 
yes possible

you can get house by id or anything u want or just
Lua:
local houseSqmPosition = Position(123,123,7)
if(houseSqmPosition) then
    local tile = Tile(houseSqmPosition)
    if(tile) then
        local house = tile:getHouse()
        if(house) then
            local playerGuid = 0 --here you put player GUID i:e  player:getGuid()
            house:setOwnerGuid(playerGuid)
        end
    end
end
 
Last edited:
Back
Top