• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved TFS 1.1 talkactions commands access

Shadow Dan

Sh4dowDan
Joined
Jun 5, 2010
Messages
344
Reaction score
90
Location
Poland
I dont have idea where to edit access for talkactions.
In older version it was something like this:
Code:
<talkaction log="yes" words="/a" access="3" event="script" value="teleporttiles.lua"/>
where access="3" means that you need access 3 to use this command

I've found commands.xml but there is problem, i added this line:
Code:
<command cmd="/aol" group="1" acctype="1" log="no"/>
commands.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<commands>
    <command cmd="/reload" group="2" acctype="5" log="yes"/>
    <command cmd="/raid" group="2" acctype="4" log="yes"/>
    <command cmd="!sellhouse" group="1" acctype="1" log="no"/>
    <command cmd="/aol" group="1" acctype="1" log="no"/>
</commands>

talkactions.xml
Code:
    <talkaction words="/aol" script="aol.lua" />
error in console:
Code:
[Warning - Commands::loadFromXml] Unknown command /aol

I want access to be editable in one file.
 
Thanks for info.
Btw. if someone needs i created simple code to check group.

Code:
if not(player:getGroup():getId() >= 3) then return true end
tabbed
Code:
if not(player:getGroup():getId() >= 3) then
    return true
end
 
Back
Top