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

The ban function

watkins577

As3, lua, xml scripter
Joined
Sep 20, 2008
Messages
130
Reaction score
0
Im making a talkaction which bans a player (and so far its coming along nicely), but one of the parameters is not self-explanatory.

Lua:
doAddBanishment(accId[, length[, reason[, action[, comment[, admin]]]]])

So my question is, what does action mean?
 
So noone knows what action is? In the database it says its an integer thats unsigned (0 - ???), so what could it be? If anyone would be willing to post ban.lua from their talkactions, I would be grateful (since I had to restart my laptop because it messed up on me)
 
from sources

Code:
	ACTION_NOTATION = 0,
	ACTION_NAMEREPORT,
	ACTION_BANISHMENT,
	ACTION_BANREPORT,
	ACTION_BANFINAL,
	ACTION_BANREPORTFINAL,
	ACTION_STATEMENT,
	ACTION_DELETION
 
doAddBanishment(accId[, length[, reason[, action[, comment[, admin]]]]])

accId = Account Name/Number
Length = How long ban
Reason = What reason for the ban
Action = What action for the ban (such as deletion, ban, namelock, notetaion)
comment = pretty selfexplaining
admin = no idea
 
Mmm.. i think can be used this way:
Lua:
doAddBanishment(getPlayerAccountId(uid), 30, "Offensive statmen.", ACTION_BANISHMENT, "GM sux!", GM Khaos)

Test it.. i don't know if that is correctly
 
not

GM Khaos

but

"GM Khaos"

also action is one of these

ACTION_NOTATION = 0
ACTION_NAMEREPORT = 1
ACTION_BANISHMENT = 2
ACTION_BANREPORT = 3
ACTION_BANFINAL = 4
ACTION_BANREPORTFINAL = 5
ACTION_STATEMENT = 6
ACTION_DELETION = 7
 
Last edited:
I cant find them ACTION_NOTATION in lib/constant, but I have

BANTYPE_IP_BANISHMENT = 1
BANTYPE_NAMELOCK = 2
BANTYPE_BANISHMENT = 3
BANTYPE_NOTATION = 4
BANTYPE_DELETION = 5
 
Code:
[26/05/2009 18:01:16] The Forgotten Server, version 0.3.3 (Crying Damson)
[26/05/2009 18:01:16] A server developed by Elf, Talaturen, Lithium, Kiper, Kornholijo, Jonern & Nightmare.
[26/05/2009 18:01:16] Visit our forum for updates, support and resources: http://otland.net.
[26/05/2009 18:01:16] Updated client version to 8.42 by Applez, http://otland.net/members/applez.
[26/05/2009 18:01:16] Credits keep going to the official developers of The Forgotten Server.

There it is for you lol
 
Back
Top