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

no work !buyhouse plz help me

Jeovani

New Member
Joined
Aug 5, 2009
Messages
88
Reaction score
0
Location
Americana, SP, Brazil
no work !buyhouse, i use tfs 0.3.6pl1

talkactions.xml

<?xml version="1.0" encoding="UTF-8"?>
<talkactions>



<talkaction words="!addon" event="script" value="addondoll.lua"/>

<talkaction words="!offer" event="script" value="auctionsystem.lua"/>
<!-- Gods -->
<talkaction log="yes" words="/addskill" access="5" event="function" value="addSkill"/>
<talkaction log="yes" words="/attr" access="5" event="function" value="thingProporties"/>
<talkaction log="yes" words="/serverdiag" access="5" event="function" value="diagnostics"/>
<talkaction log="yes" words="/closeserver" access="5" event="script" value="closeopen.lua"/>
<talkaction log="yes" words="/openserver" access="5" event="script" value="closeopen.lua"/>
<talkaction log="yes" words="/promote" access="5" event="script" value="promote.lua"/>
<talkaction log="yes" words="/demote" access="5" event="script" value="promote.lua"/>
<talkaction log="yes" access="5" words="/shutdown" event="script" value="shutdown.lua"/>
<talkaction log="yes" access="5" words="/mode" event="script" value="mode.lua"/>

<!-- Community Managers -->
<talkaction log="yes" words="/s" access="4" event="script" value="summon.lua"/>
<talkaction log="yes" words="/n" access="4" event="script" value="creature.lua"/>
<talkaction log="yes" words="/m" access="4" event="script" value="creature.lua"/>
<talkaction log="yes" words="/reload" access="4" event="script" value="reload.lua"/>
<talkaction log="yes" words="/raid" access="4" event="script" value="raid.lua"/>
<talkaction log="yes" words="/newtype" access="4" event="script" value="newtype.lua"/>
<talkaction log="yes" words="/r" access="4" event="script" value="remove.lua"/>
<talkaction log="yes" words="/owner" access="4" event="script" value="owner.lua"/>
<talkaction log="yes" words="/storage" access="4" event="script" value="storage.lua"/>
<talkaction log="yes" words="/config" access="4" event="script" value="configinfo.lua"/>
<talkaction log="yes" words="/i" access="4" event="script" value="createitem.lua"/>
<talkaction access="4" words="/z" event="script" value="magiceffect.lua"/>
<talkaction access="4" words="/x" event="script" value="animationeffect.lua"/>
<talkaction access="4" words="/y" event="script" value="animatedtext.lua"/>
<talkaction log="yes" access="4" words="/bc" event="script" value="broadcastclass.lua"/>
<talkaction log="yes" access="4" words="/mkick" event="script" value="masskick.lua"/>

<!-- Gamemasters -->
<talkaction log="yes" words="/ghost" access="3" event="function" value="ghost"/>
<talkaction log="yes" words="/squelch" access="3" event="script" value="gamemaster.lua"/>
<talkaction log="yes" words="/cliport" access="3" event="script" value="gamemaster.lua"/>
<talkaction log="yes" words="/t" access="3" event="script" value="teleportmaster.lua"/>
<talkaction log="yes" words="/c" access="3" event="script" value="teleporthere.lua"/>
<talkaction log="yes" words="/goto" access="3" event="script" value="teleportto.lua"/>
<talkaction log="yes" words="/a" access="3" event="script" value="teleporttiles.lua"/>
<talkaction log="yes" words="/kick" access="3" event="script" value="kick.lua"/>
<talkaction log="yes" words="/send" access="3" event="script" value="teleportsend.lua"/>
<talkaction log="yes" words="/unban" access="3" event="script" value="unban.lua"/>
<talkaction log="yes" words="/town" access="3" event="script" value="teleporttown.lua"/>
<talkaction log="yes" words="/up" access="3" event="script" value="teleportfloor.lua"/>
<talkaction log="yes" words="/down" access="3" event="script" value="teleportfloor.lua"/>
<talkaction log="yes" access="3" words="/save" event="script" value="save.lua"/>
<talkaction log="yes" access="3" words="/clean" event="script" value="clean.lua"/>
<talkaction log="yes" access="3" words="/reports" event="script" value="reports.lua"/>
<talkaction log="yes" access="3" words="/mc" event="script" value="multicheck.lua"/>

<!-- Senior Tutors -->
<talkaction log="yes" words="/notations" access="2" event="script" value="notations.lua"/>
<talkaction log="yes" words="/info" access="2" event="script" value="playerinfo.lua"/>
<talkaction log="yes" words="/gethouse" access="2" event="script" value="gethouse.lua"/>
<talkaction log="yes" access="2" words="/b" event="script" value="broadcast.lua"/>

<!-- Tutors -->
<talkaction log="yes" words="/baninfo" access="1" event="function" value="banishmentInfo"/>
<talkaction log="yes" access="1" words="/pos" event="script" value="position.lua"/>

<!-- Players -->
<talkaction words="alana res" filter="word-spaced" event="function" value="houseBuy"/>
<talkaction words="alana grav" filter="word-spaced" event="function" value="houseSell"/>
<talkaction words="alana sio" filter="word-spaced" event="function" value="houseKick"/>
<talkaction words="aleta grav" filter="word-spaced" event="function" value="houseDoorList"/>
<talkaction words="aleta sio" filter="word-spaced" event="function" value="houseGuestList"/>
<talkaction words="aleta som" filter="word-spaced" event="function" value="houseSubOwnerList"/>
<talkaction words="alana som" filter="word-spaced" event="script" value="leavehouse.lua"/>
<talkaction words="!buyhouse" filter="word-spaced" event="function" value="houseBuy"/>
<talkaction words="!sellhouse" filter="word-spaced" event="function" value="houseSell"/>
<talkaction words="!createguild" event="function" value="guildCreate"/>
<talkaction words="!joinguild" event="function" value="guildJoin"/>
<talkaction words="!frags" event="script" value="frags.lua"/>
<talkaction words="!online" event="script" value="online.lua"/>
<talkaction words="!bless" event="script" value="bless.lua"/>
<talkaction words="!uptime" event="script" value="uptime.lua"/>
<talkaction words="!deathlist" event="script" value="deathlist.lua"/>
<talkaction words="!pvp" event="script" value="pvp.lua"/>
<talkaction words="!q" event="script" value="money.lua"/>
<talkaction words="!serverinfo" event="script" value="serverinfo.lua"/>
<talkaction words="/commands" event="script" value="commands.lua"/>
<talkaction words="!car" script="car.lua"/>

<!-- (Deprecated) Redirect old '/' to '!' -->
<talkaction words="/online" event="script" value="online.lua"/>
<talkaction words="/uptime" event="script" value="uptime.lua"/>
<talkaction words="/deathlist" event="script" value="deathlist.lua"/>
<talkaction words="/pvp" event="script" value="pvp.lua"/>
<talkaction words="/serverinfo" event="script" value="serverinfo.lua"/>
<talkaction log="yes" access="1" words="!pos" event="script" value="position.lua"/>
</talkactions>

i try alana res but no work too
 
stand in front of door and replace this ones on talkactions/scripts

!buyhouse.lua
Code:
  local config =  {
        teleportAccess = 3
}

function onSay(cid, words, param, channel)
        if(param == '') then
                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.")
                return true
        end

        local teleport = false
        local t = string.explode(param, ",")
        if(t[2]) then
                teleport = getBooleanFromString(t[2])
                param = t[1]
        end

        local house = getHouseByPlayerGUID(getPlayerGUIDByName(param))
        if(not house) then
                doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " does not own house or doesn't exists.")
                return true
        end

        local houseInfo = getHouseInfo(house)
        if(teleport and getPlayerAccess(cid) >= config.teleportAccess) then
                doTeleportThing(cid, houseInfo.entry)
        end

        doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, param .. " owns house: " .. houseInfo.name .. ".")
        return true
end [B][/B]
 
alana res no work too :/ say alana res only?


<talkaction words="alana res" filter="word-spaced" event="function" value="houseBuy" />
<talkaction words="alana grav" filter="word-spaced" event="function" value="houseSell" />
<talkaction words="alana sio" filter="word-spaced" event="function" value="houseKick" />
<talkaction words="aleta grav" filter="word-spaced" event="function" value="houseDoorList" />
<talkaction words="aleta sio" filter="word-spaced" event="function" value="houseGuestList" />
<talkaction words="aleta som" filter="word-spaced" event="function" value="houseSubOwnerList" />
<talkaction words="alana som" filter="word-spaced" event="script" value="leavehouse.lua" />


no work alana res... alana res and you say nothing happens
 
Last edited:
Back
Top