Page 1 of 1

banning someone

PostPosted: Fri Dec 23, 2005 5:53 pm
by bedrock1977
I've searched for a few hours now but cant find anything definate.

I wanted to know if there is a way to ban someone from the console?

Also... is there a way to ban someone within the game if they are not online?

Could I just edit ban.xml manually?

Thanks in advance!

PostPosted: Fri Dec 23, 2005 6:24 pm
by nor
From Ban.cs:
Code: Select all
[CmdAttribute(
"&ban",
(uint) ePrivLevel.GM,
"Ban an account",
"/ban <day> <hour> <minute> [reason]",
"/ban <accountName> <day> <hour> <minute> [reason]",
"/ban status <accountName>")]
It should be possible to ban from console and to ban offline players, just must use their account name instead of char name.

PostPosted: Tue Jan 10, 2006 4:35 am
by bedrock1977
I get this when I try to ban from the console:
(all I typed was /ban)
20:32:51,166 - [MAIN] - ERROR - DOL.GS.Scripts.ScriptMgr - HandleCommandNoPlvl
System.NullReferenceException: Object reference not set to an instance of an object.
at DOL.GS.Scripts.BanCommandHandler.OnCommand(GameClient client, String[] args) in d:\Program Files\Utopia Developer Edition\engine\scripts\gmcommands\Ban.cs:line 43
at DOL.GS.Scripts.ScriptMgr.ExecuteCommand(GameClient client, GameCommand myCommand, String[] pars) in i:\source\GameServer\gameutils\ScriptMgr.cs:line 397
at DOL.GS.Scripts.ScriptMgr.HandleCommandNoPlvl(GameClient client, String cmdLine) in i:\source\GameServer\gameutils\ScriptMgr.cs:line 290

PostPosted: Wed Jan 11, 2006 2:50 pm
by Smallhorse
This is a bug, try using /ban from ingame! :)

PostPosted: Wed Jan 11, 2006 6:54 pm
by bedrock1977
I figured as much. Is there any commands that work from the console? So far all I've tried gives an error like above.

PostPosted: Fri Jan 13, 2006 10:31 am
by Smallhorse
Sorry currently due this bug the console /ban command won't work.
It will need to be fixed in the next head and stable release.

PostPosted: Fri Jan 13, 2006 6:20 pm
by bedrock1977
I'll take a stab and fix it... see how bad I screw up. lol... Still learning but gotta start somewhere. :)

I appreciate everyones hard work on this project!