LucasFerraz
Systems Analyst
Firstly you have to add this function:
http://otland.net/f35/dosavehouse-houseid-145403/
Then add this in lib/050-function.lua
Create advancedsave.lua in Data/talkactions/Scripts and add
Then add in talkactions.xml
Thank you Jetro.
http://otland.net/f35/dosavehouse-houseid-145403/
Then add this in lib/050-function.lua
LUA:
function valid(f)
return function(p,...)
if isCreature(p) then
return f(p,...)
end
end
end
function savehouse(cid)
local playerHouseId = getHouseByPlayerGUID(getPlayerGUID(cid))
doSaveHouse(playerHouseId)
end
Create advancedsave.lua in Data/talkactions/Scripts and add
LUA:
function onSay(cid, words, param, channel)
if (words == "!save") then
savehouse(cid)
doPlayerSave(cid)
end
return TRUE
end
Then add in talkactions.xml
XML:
<talkaction words="!savet" event="script" value="advancedsave.lua"/>
Thank you Jetro.