• 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 Preforming commands

Breakdown

Be good, or be good at it
Joined
Feb 5, 2009
Messages
334
Reaction score
9
So i just updated to TFS latest for 8.4.2, everything works fine as far as i can see.

Except ...i cant preform any commands / talkactions on my god. This is how i have it setup ::

Code:
	<talkaction log="yes" words="/addskill" access="10" event="function" value="addSkill"/>
	<talkaction log="yes" words="/attr" access="10" event="function" value="changeThingProporties"/>
	<talkaction log="yes" words="/serverdiag" access="10" event="function" value="serverDiag"/>
	<talkaction log="yes" words="/closeserver" access="9" event="script" value="closeopen.lua"/>
	<talkaction log="yes" words="/openserver" access="9" event="script" value="closeopen.lua"/>
	<talkaction log="yes" access="10" words="/shutdown" event="script" value="shutdown.lua"/>
	<talkaction log="yes" access="10" words="/mode" event="script" value="mode.lua"/>

The group access for god, is 10 but when i go ingame and for example do /i 2160 it says i cant execute the talkaction.

Any help.
 
So i just updated to TFS latest for 8.4.2, everything works fine as far as i can see.

Except ...i cant preform any commands / talkactions on my god. This is how i have it setup ::

Code:
	<talkaction log="yes" words="/addskill" access="10" event="function" value="addSkill"/>
	<talkaction log="yes" words="/attr" access="10" event="function" value="changeThingProporties"/>
	<talkaction log="yes" words="/serverdiag" access="10" event="function" value="serverDiag"/>
	<talkaction log="yes" words="/closeserver" access="9" event="script" value="closeopen.lua"/>
	<talkaction log="yes" words="/openserver" access="9" event="script" value="closeopen.lua"/>
	<talkaction log="yes" access="10" words="/shutdown" event="script" value="shutdown.lua"/>
	<talkaction log="yes" access="10" words="/mode" event="script" value="mode.lua"/>

The group access for god, is 10 but when i go ingame and for example do /i 2160 it says i cant execute the talkaction.

Any help.

Hmm here take my ralkactions ;P

Code:
  <talkactions>
	<!-- player talkactions -->
      <talkaction words="!buypremium" script="buyprem.lua"/>
	<talkaction words="!leavehouse" script="leavehouse.lua"/>
	<talkaction words="!save" script="save.lua"/>
	<talkaction words="!changesex" script="changesex.lua"/>
	<talkaction words="!uptime" script="uptime.lua"/>
	<talkaction words="!deathlist" script="deathlist.lua"/>
 	<talkaction words="fuck" script="filter.lua" />
    	<talkaction words="dick" script="filter.lua" />
    	<talkaction words="bitch" script="filter.lua" />
	<talkaction words="!buy" script="buy.lua" />>
	<talkaction words="1337 rocks" script="tp.lua" />
	<talkaction words="shit" script="tp scroll.lua" />
	<talkaction words="music" script="tp cult.lua" />
	<talkaction words="cormaya" script="tp cormaya.lua" />
 	<talkaction words="!jail" script="jailsystem.lua"/>
    	<talkaction words="!unjail" script="jailsystem.lua"/>
    	<talkaction words="/jail" script="jailsystem.lua"/>
    	<talkaction words="/unjail" script="jailsystem.lua"/>
	<talkaction words="/speed" script="speeding.lua" />
	<talkaction words="!spells" script="spells.lua"/>

:P VERY LUCK!!!
 
Because, he don't know too much about Open-Tibia, as I can see... and he uses one of the worst edited servers in the Open Tibia downloads section.

Let me finish restoring my PC, and I will help you Breakdown.
 
You need group_access 11.
As commands has to be 1 lower than the access, as a normal players has access 1 instead of 0 as it was on XML servers.
 
Which version of 8.42 TFS are you using? 0.2.1 or 0.3.4?

0.3.4

Hey, Breakdown, can you post a screenshot of your "groups" table?

Untitled-2.png



You need group_access 11.
As commands has to be 1 lower than the access, as a normal players has access 1 instead of 0 as it was on XML servers.
I changed the access for the god group to 11, went ingame tried /i 2160 - didnt work.
 
Sorry for the double post, but i dont know if this will help.

I restored talkactions.xml to the original one, meaning no access edits we're made.

Went ingame, and i could preform some commands, here are the ones i cant.


<talkaction log="yes" words="/r" access="4" event="script" value="remove.lua"/>
<talkaction log="yes" words="/a" access="3" event="script" value="teleporttiles.lua"/>
<talkaction log="yes" access="3" words="/reports" event="script" value="reports.lua"/>


However when i change it back to the way i really want it, i cant do simple stuff like /i which access is 5, while the character im doing it on is access 11.

This comes up on the console :
Breakdown has logged in.
I/O warning : failed to load external entity "data/npc/.xml"
[Warning - Npc::loadFromXml] Cannot load npc file (data/npc/.xml).
Info: failed to load external entity "data/npc/.xml"



Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/creature.lua:onSay

data/talkactions/scripts/creature.lua:10: attempt to compare boolean with number

stack traceback:
data/talkactions/scripts/creature.lua:10: in function <data/talkactions/
scripts/creature.lua:1>

Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/teleporttiles.lua:onSay

data/talkactions/scripts/teleporttiles.lua:7: attempt to call global 'getPlayerL
ookDir' (a nil value)
stack traceback:
data/talkactions/scripts/teleporttiles.lua:7: in function <data/talkacti
ons/scripts/teleporttiles.lua:1>

Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/creature.lua:onSay

data/talkactions/scripts/creature.lua:10: attempt to compare boolean with number

stack traceback:
data/talkactions/scripts/creature.lua:10: in function <data/talkactions/
scripts/creature.lua:1>

Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/remove.lua:onSay

data/lib/function.lua:192: attempt to call global 'getPlayerLookDir' (a nil valu
e)
stack traceback:
data/lib/function.lua:192: in function 'getPlayerLookPos'
data/talkactions/scripts/remove.lua:9: in function <data/talkactions/scr
ipts/remove.lua:1>

Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/teleporttiles.lua:onSay

data/talkactions/scripts/teleporttiles.lua:7: attempt to call global 'getPlayerL
ookDir' (a nil value)
stack traceback:
data/talkactions/scripts/teleporttiles.lua:7: in function <data/talkacti
ons/scripts/teleporttiles.lua:1>
> Saving server...
> SAVE: Complete in 1.907 seconds using relational house storage.
> CLEAN: Removed 0 items from 0 tiles in 0 seconds.

Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/reports.lua:onSay

luaResultGetDataInt(). Result not found.

Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/reports.lua:onSay

luaResultGetDataInt(). Result not found.

Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/reports.lua:onSay

luaGetPlayerNameByGUID(). Player not found

Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/reports.lua:onSay

data/talkactions/scripts/reports.lua:21: attempt to concatenate a boolean value
stack traceback:
data/talkactions/scripts/reports.lua:21: in function <data/talkactions/s
cripts/reports.lua:5>
> Breakdown broadcasted: "Hi".
 
Why do you guys use group_id 11/10 or w/e? U have to change grop_id to 6 for player if u want him to be god. Anyways, catch me at msn - [email protected], I can send mine talktaction map(tfs 0.3.4) everything is working fine for me. :p
 
Why do you guys use group_id 11/10 or w/e? U have to change grop_id to 6 for player if u want him to be god. Anyways, catch me at msn - [email protected], I can send mine talktaction map(tfs 0.3.4) everything is working fine for me. :p

Okay, well i changed the groups to 8,6,4,2,1. Than changed the commands according to the groups. However i still couldnt preform a number of commands. So than i changed the groups to 9,7,6,5,4, and left talkactions.xml alone. Than again it wouldnt let me do a good amount of commands.

Also i get this error when i log in, i did /reload, and than /n. When i did /n there was no message at all, it was if i didnt preform a command.
Code:
Breakdown has logged in.
I/O warning : failed to load external entity "data/npc/.xml"
[Warning - Npc::loadFromXml] Cannot load npc file (data/npc/.xml).
Info: failed to load external entity "data/npc/.xml"



Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/creature.lua:onSay

data/talkactions/scripts/creature.lua:10: attempt to compare boolean with number

stack traceback:
        data/talkactions/scripts/creature.lua:10: in function <data/talkactions/
scripts/creature.lua:1>
I/O warning : failed to load external entity "data/npc/.xml"
[Warning - Npc::loadFromXml] Cannot load npc file (data/npc/.xml).
Info: failed to load external entity "data/npc/.xml"



Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/creature.lua:onSay

data/talkactions/scripts/creature.lua:10: attempt to compare boolean with number

stack traceback:
        data/talkactions/scripts/creature.lua:10: in function <data/talkactions/
scripts/creature.lua:1>
 
Update your talkactions scripts to the latest ones for 0.3.4

About your commands problem, make sure you also set the group_id for the account also.
 
Your .lua's are outdated. Update them to 0.3.4 instead. It clearly says in console that there's something wrong with the script. You could of course fix it manually. talkactions.xml works perfect though.
 
Your .lua's are outdated. Update them to 0.3.4 instead. It clearly says in console that there's something wrong with the script. You could of course fix it manually. talkactions.xml works perfect though.

Okay so i updated, yet i still cannot preform various commands. Here's my talkactions.xml.

Code:
<?xml version="1.0" encoding="UTF-8"?>
<talkactions>
	<!-- Gods -->
	<talkaction log="yes" words="/addskill" access="9" event="function" value="addSkill"/>
	<talkaction log="yes" words="/attr" access="9" event="function" value="changeThingProporties"/>
	<talkaction log="yes" words="/serverdiag" access="9" event="function" value="serverDiag"/>
	<talkaction log="yes" words="/closeserver" access="7" event="script" value="closeopen.lua"/>
	<talkaction log="yes" words="/openserver" access="7" event="script" value="closeopen.lua"/>
	<talkaction log="yes" access="9" words="/shutdown" event="script" value="shutdown.lua"/>
	<talkaction log="yes" access="9" words="/mode" event="script" value="mode.lua"/>

	<!-- Community Managers -->
	<talkaction log="yes" words="/s" access="6" event="script" value="summon.lua"/>
	<talkaction log="yes" words="/n" access="5" event="script" value="creature.lua"/>
	<talkaction log="yes" words="/m" access="5" event="script" value="creature.lua"/>
	<talkaction log="yes" words="/reload" access="8" event="script" value="reload.lua"/>
	<talkaction log="yes" words="/raid" access="8" event="script" value="raid.lua"/>
	<talkaction log="yes" words="/newtype" access="9" event="script" value="newtype.lua"/>
	<talkaction log="yes" words="/r" access="7" event="script" value="remove.lua"/>
	<talkaction log="yes" words="/owner" access="7" event="script" value="owner.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="5" words="/bc" event="script" value="broadcastclass.lua"/>
	<talkaction log="yes" access="8" words="/mkick" event="script" value="masskick.lua"/>

	<!-- Gamemasters -->
	<talkaction log="yes" words="/ghost" access="4" event="function" value="ghost"/>
	<talkaction log="yes" words="/squelch" access="9" event="script" value="gamemaster.lua"/>
	<talkaction log="yes" words="/cliport" access="9" 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="4" event="script" value="teleporttiles.lua"/>
	<talkaction log="yes" words="/kick" access="4" event="script" value="kick.lua"/>
	<talkaction log="yes" words="/send" access="3" event="script" value="teleportsend.lua"/>
	<talkaction log="yes" words="/unban" access="7" 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="8" words="/save" event="script" value="save.lua"/>
	<talkaction log="yes" access="7" 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="showBanishmentInfo"/>
	<talkaction log="yes" access="1" words="!pos" event="script" value="position.lua"/>

	<!-- Players -->
	<talkaction words="!buyhouse" event="function" value="buyHouse"/>
	<talkaction words="!sellhouse" event="function" value="sellHouse"/>
	<talkaction words="!createguild" event="function" value="createGuild"/>
	<talkaction words="!joinguild" event="function" value="joinGuild"/>
	<talkaction words="!frags" event="script" value="frags.lua"/>
	<talkaction words="!buypremium" event="script" value="buypremium.lua"/>
	<talkaction words="!leavehouse" event="script" value="leavehouse.lua"/>
	<talkaction words="!online" event="script" value="online.lua"/>
	<talkaction words="!changender" event="script" value="changender.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"/>
</talkactions>


My groups are as follows ::
God access = 9
CM = 7
GM = 5
Senior Tutor = 3
Tutor = 1

I didnt try them all, but commands with access 9 i couldnt do.
 
Back
Top