• 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 "Aliases" to commands

tokenzz

:thinking:
Joined
Feb 2, 2013
Messages
778
Solutions
2
Reaction score
345
Hiho,

I'm curious, as I'm interested if there's any possibility of making an "alias" to a command. E.g /g for /goto, /u for /up, /d instead of using /down instead of having to make another talkaction script. If it was unclear; I'm asking whether it's possible to have an alias inside of the same talkaction script (in order to make it shorter) using both for example "/g" and "/goto".

Kind regards,

t0kenz
 
Code:
<talkaction log="yes" words="/skill;/addskill" access="5" event="script" value="skill.lua"/>
Without testing this until now, I found out that it didn't work, sadly.
I'm using OTHire, which is similar to OTServ SVN 0.6.3, which has similar functions to tfs 0.3.6/0.3.7
Code:
Tried replicating the same thing;
<talkaction words="/up;/u" access="0" filter="first word" script="floorchange.lua"/>
<talkaction words="/down;/d" access="0" filter="first word" script="floorchange.lua"/>
<talkaction words="/goto;/g" access="0" filter="first word" script="teleportto.lua"/>

Kind regards,

t0kenz
<talkaction words="/goto;/g" access="0" filter="first word" script="teleportto.lua"/>

Edit: Pretty sure it has to do with the script
 
Last edited:
Back
Top