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

Cannot Excute command in tfs 1.2

Grizarly

New Member
Joined
Nov 12, 2017
Messages
59
Reaction score
0
just compiled tfs 1.2 8.6 when i made god chr with phpmyadmin i enterd the game and when i try to use commands like /a /m cannot execute it or get the message that says i cannot execute this command
 
Check if you're sending the command with the correct parameters and some commands check for account type god too, not just the character.
 
just compiled tfs 1.2 8.6 when i made god chr with phpmyadmin i enterd the game and when i try to use commands like /a /m cannot execute it or get the message that says i cannot execute this command
Check your groups.xml in the XML directory and see if it corresponds with what you set the group id to be in the database. In some versions of TFS the group id is set to 3 as the permissions needed but the real permissions need is group 5.
Or you can just copy and paste this into your groups.xml
HTML:
<?xml version="1.0" encoding="UTF-8"?>
<groups>
    <group id="1" name="player" flags="0" access="0" maxdepotitems="0" maxvipentries="0" />
    <group id="2" name="tutor" flags="16777216" access="0" maxdepotitems="0" maxvipentries="200" />
    <group id="3" name="sennior tutor" flags="29360128" access="0" maxdepotitems="0" maxvipentries="200" />
    <group id="4" name="gamemaster" flags="66567897594" access="1" maxdepotitems="0" maxvipentries="200" outfit="266"/>
    <group id="5" name="god" flags="135291445242" access="1" maxdepotitems="0" maxvipentries="200" outfit="302"/>
</groups>
 
You're sure you've not mistaken account id with account type?

Try using your previous default groups.xml, and then set acc type to 5 and groups to 3 (god).
Or even maybe create a new character with these parameters.
Make changes while your server is off.

What command you're trying to execute exactly?(paste full line)
Because if you werent a god character, i believe you wouldn't get any cancel message, you would just send it in default channel instead.
 
You're sure you've not mistaken account id with account type?

Try using your previous default groups.xml, and then set acc type to 5 and groups to 3 (god).
Or even maybe create a new character with these parameters.
Make changes while your server is off.

What command you're trying to execute exactly?(paste full line)
Because if you werent a god character, i believe you wouldn't get any cancel message, you would just send it in default channel instead.
any commands /i /m /s /n just /a works but it dont make tp effect just move
 
Need with effect?
/a 10

any commands /i /m /s /n just /a works but it dont make tp effect just move
Lua:
function onSay(player, words, param)
     if not player:getGroup():getAccess() then
        return true
    end

    local steps = tonumber(param)
    if not steps then
        return false
    end

    local position = player:getPosition()
    position:getNextPosition(player:getDirection(), steps)

    position = player:getClosestFreePosition(position, false)
    if position.x == 0 then
        player:sendCancelMessage("You cannot teleport there.")
        return false
    end

    player:teleportTo(position)
    player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
    return false
end
 
Back
Top