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

Banishment Issues

Xagul

deathzot.net
Joined
Jun 30, 2008
Messages
1,295
Solutions
3
Reaction score
1,043
Hello Ive now spent about 3 hours looking through these forums for some explanations and I just cant seem to find anything.

Basicly myself and a lot of others are having problems with the Banishment functions (doAddAccountBanishment)

When I use:
doAddAccountBanishment(3)

The account with that ID gets banned correctly for the default ban length defined in the servers config.lua however it does not tell why they were banned who banned them and all that stuff.

Using this syntax found in LUA_FUNCTIONS:
doAddAccountBanishment(accId, length, reason, action, comment, admin)

I have used CTRL + Y to ban the same player and then checked the database for correct values that are certain to be correct since CTRL + Y works properly and what I have came up with is:

doAddAccountBanishment(3, 3600, 12, 2, "test", 2)

When used it does not throw an error however the player does not recieve a ban and when you look at the database the values recorded are all blank including the date expires which is what I am assuming is the problem so what I am wondering is...

a) is the function not working properly?
b) am I using the wrong syntax?
c) does this function not support length/reason/action/coment/admin?
d) does anyone know how to get this function to work as it should?
 
Last edited:
I'll just leave this here
Code:
	//doAddAccountBanishment(accountId[, playerId[, length[, reason[, action[, comment[, admin[, statement]]]]]]])
Yeah, search in the sources next time.
 
doAddAccountBanishment(accId, length, reason, action, comment, admin)

I was using what I found however it is for an older version.


This must be for the newer versions of TFS
Code:
//doAddAccountBanishment(accountId[, playerId[, length[, reason[, action[, comment[, admin[, statement]]]]]]])

Actually its my fault for not specifying but I created this thread back when that was the latest version of TFS and I didn't even think to clarify when I bumped it xD
 
Ok so it works aside from the length =\ for some reason I cant get the length to work so the player can just log back in after getting banned. I tested with -1 and that resulted in deletion.
 
Back
Top