Oi galera venho a postar o module House Look igual ao PXG que fiz hoje.
No server vamos para a pasta de creaturescripts, no Look.lua colocamos o seguente
local houseId = getHouseFromPos(position)
if houseId and getItemNameById(thing.itemid):find("door") then
if getHouseOwner(houseId) ~= 0 then house_owner = getPlayerNameByGUID(getHouseOwner(houseId)) else house_owner = "Nobody" end
house_name = getHouseName(houseId)
house_town = getTownName(getHouseTown(houseId))
house_size = getHouseTilesCount(houseId)
house_price = getHousePrice(houseId)
local house_information = string.format("house_data|%s|%s|%s|%u|%u", house_name, house_owner, house_town, house_size, house_price)
return doSendPlayerExtendedOpcode(cid, 199, house_information) and false
Esse codigo debe ser colocado como o if principal ou como um elseif no final do arquivo Look.lua
Baixe o Modolo e ja era. Ficaria assim:
PD: o modulo usa o opcode 199, lembrese de registrar o modulo no GAME_INTERFACE como
- game_house
Virustotal: https://www.virustotal.com/gui/file/58db3f2aa43c1297dc24b26e751e66a1acb6bdbbd3c0fecd27e35e789f7eb440/detection
Credits:
A mim por fazer
PXG por fazer o desenho principal
game_house.rar