• 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 /Ban,not enought params help 0.2.15 ASAP

its not a script , it is in the tfs.. XML -> Commands.xml
Lua:
<?xml version="1.0" encoding="UTF-8"?>
<commands>
	<command cmd="/b" group="2" acctype="5" log="yes"/>
	<command cmd="/i" group="2" acctype="5" log="yes"/>
	<command cmd="/n" group="2" acctype="5" log="yes"/>
	<command cmd="/reload" group="1" acctype="5" log="yes"/>
	<command cmd="/s" group="2" acctype="5" log="yes"/>
	<command cmd="/openserver" group="1" acctype="5" log="yes"/>
	<command cmd="/closeserver" group="1" acctype="5" log="yes"/>
	<command cmd="/ghost" group="2" acctype="5" log="yes"/>
	<command cmd="/owner" group="2" acctype="5" log="yes"/>
	<command cmd="/goto" group="2" acctype="4" log="yes"/>
	<command cmd="/a" group="2" acctype="5" log="yes"/>
	<command cmd="/c" group="2" acctype="4" log="yes"/>
	<command cmd="/m" group="2" acctype="5" log="yes"/>
	<command cmd="/summon" group="2" acctype="5" log="yes"/>
	<command cmd="/kick" group="1" acctype="4" log="yes"/>
	<command cmd="/B" group="1" acctype="4" log="yes"/>
	<command cmd="/q" group="2" acctype="4" log="yes"/>
	<command cmd="/info" group="1" acctype="4" log="yes"/>
	<command cmd="/gethouse" group="2" acctype="4" log="yes"/>
	<command cmd="/t" group="2" acctype="4" log="yes"/>
	<command cmd="/up" group="2" acctype="5" log="yes"/>
	<command cmd="/down" group="2" acctype="5" log="yes"/>
	<command cmd="/newtype" group="2" acctype="5" log="yes"/>
	<command cmd="/pos" group="1" acctype="2" log="yes"/>
	<command cmd="/r" group="2" acctype="5" log="yes"/>
	<command cmd="/town" group="2" acctype="4" log="yes"/>
	<command cmd="/raid" group="2" acctype="4" log="yes"/>
	<command cmd="/addskill" group="2" acctype="5" log="yes"/>
	<command cmd="/ban" group="1" acctype="3" log="yes"/>
	<command cmd="/unban" group="1" acctype="4" log="yes"/>
	<command cmd="/clean" group="2" acctype="5" log="yes"/>
	<command cmd="/mccheck" group="2" acctype="5" log="yes"/>
	<command cmd="/serverdiag" group="2" acctype="5" log="yes"/>

	<command cmd="!online" group="1" acctype="1" log="no"/>
	<command cmd="!buyhouse" group="1" acctype="1" log="no"/>
	<command cmd="!sellhouse" group="1" acctype="1" log="no"/>
	<command cmd="!serverinfo" group="1" acctype="1" log="no"/>
	<command cmd="!kills" group="1" acctype="1" log="no"/>
	<command cmd="!createguild" group="1" acctype="1" log="no"/>
	<command cmd="!joinguild" group="1" acctype="1" log="no"/>
</commands>
 
Ctrl+Y doesn't work for 0.2? cause I'm looking in sources and it shows all that information

but anyways for command this is what you need

these are your options for bans

Code:
 if (action == "notation") return 0;
        else if (action == "name report" || action == "namelock") return 1;
        else if (action == "ban" || action == "banishment") return 2;
        else if (action == "namelock + ban" || action == "namelock + banishment" || action == "name report + ban" || action == "name report + banishment") return 3;
        else if (action == "ban + final warning" || action == "banishment + final warning") return 4;
        else if (action == "namelock + ban + final warning" || action == "namelock + banishment + final warning" || action == "name report + ban + final warning" || action == "name report + banishment + final warning") return 5;
        else if (action == "statement report") return 6;
        else if (action == "delete" || action == "deletion") return 7;
the code above are your possible "actions"

so it goes like this
/ban playername, action, reason, ipbanishboolean
by default the ip ban is set to no so you do not have to answer it still not clear as to how you should answer it I think the answer would just be yes.

but example
/ban Abolish, ban, botting
that would be simple banishment

and again I am not clear for ip but you can try
/ban Abolish, ban, botting, yes
or
/ban Abolish, ban/ botting, true
 
thanks gonna test it, ip ban is actually /b playername , when /B is broadcast :)

- - - Updated - - -

still says , 01:03 Not enough params. with /ban Abolish, ban, botting
 
Hello !
I have the same problem, but i searched a litte and i found something in ban.cpp/h

/ban nick_name, from 0 to 7 (but i don't know what it is :/ ), reason (for example Offensive statement), action id **, comment

**

BAN_IPADDRESS = 1,
NAMELOCK_PLAYER = 2,
BAN_ACCOUNT = 3,
NOTATION_ACCOUNT = 4,
DELETE_ACCOUNT = 5

but i don't know how to give only banishment, when i set action id to 0, character gets banishment + name report
someone have any idea?
sorry for my english
 
Last edited:
where it says return then the number
that is the number for the action

Example: actionid 2 = banishment

Code:
 if (action == "notation") return 0;
        else if (action == "name report" || action == "namelock") return 1;
        else if (action == "ban" || action == "banishment") return 2;
        else if (action == "namelock + ban" || action == "namelock + banishment" || action == "name report + ban" || action == "name report + banishment") return 3;
        else if (action == "ban + final warning" || action == "banishment + final warning") return 4;
        else if (action == "namelock + ban + final warning" || action == "namelock + banishment + final warning" || action == "name report + ban + final warning" || action == "name report + banishment + final warning") return 5;
        else if (action == "statement report") return 6;
        else if (action == "delete" || action == "deletion") return 7;
 
Back
Top