Valhalla Legends Forums Archive | Battle.net Bot Development | Some way to check a user's server on ban...

AuthorMessageTime
Loud
Ok, I am making a moderation bot, and I want it to be able to unban any user that is banned (by any other moderation bot), but I have run into a problem! When a user is banned, it does not say the user's server...

This is kind of fucked up to read, so here's the example:

[quote]
<User1@Server1> .ban User2@Server2
User2 has been banned by User1!
[/quote]

Basically, if you ban a user on STAR/W2BN/D2 from WAR3, it just says the username has been banned, it does not say @USWest, which poses a problem because I pick through the "User2 has been banned..." message, to get User2's name...

I have only thought up 1 possible way to deal with this, and I want your commentary, because often enough, my way is not the best nor the smartest way.

I am thinking if I record the last user to leave, then when a ban message is detected, it will add the last user to leave to the list (because usually the last user to leave after a ban message is recieved, is the banned user!)...

And uhhh that's it. Your thoughts/ ruthless commentary please?
July 30, 2005, 2:42 AM
LivedKrad
Have the bot cycle through the list of possible gateway extensions, all two of them.

USEast:
@Azeroth
@USEast

USWEST:
@Lordaeron
@USWest

EUROPE and ASIA:
@Europe and @Northrend, I don't know the others (if there are any).
July 30, 2005, 2:54 AM
Loud
Cycling through them would do me what good...?  ???

I don't grasp what you just said at alllll bro... Do you mean have it add both? Or what? I NEED USEFUL COMMENTARY GUYS...
July 30, 2005, 3:00 AM
Kp
Do what I do: ban the usage of name-mangled products.  Then you know the gateway is @USEast, since *@Azeroth is always banned and therefore never deserving of an unban. :)
July 30, 2005, 3:42 AM
Loud
I would... But my clan may think I am strung out on crack if I suddenly start banning users with the reason "THEIR NAME CONTAINED @AZEROTH!"...

You know how that goes Kp  :P
July 30, 2005, 3:51 AM
Kp
So don't give a reason.  Just silently ban them and don't waste time explaining why. :)
July 30, 2005, 4:34 AM
Loud
Lmaonaise!

Kp, this is the first time I haven't gotten slammed with "OMFGZ U R TEH NUB!"... But I also haven't gotten any helpful commentary, what gives? I know you aren't in Visual Basic 6, but can't you command some of the forum junkies to give me input/advice?  ;D
July 30, 2005, 4:52 AM
HdxBmx27
Sounds to me that Checking the Last user who exited would work. But also Simply Unbanning both realms would work to.
Yes it's an extra message sent out, And an error reported back (That user Is not logged in) but it's the simplest way to go.
~-~(HDX)~-~
July 30, 2005, 5:23 AM
R.a.B.B.i.T
The simplest way is to check the next EID_LEAVE message recieved.  99.999999999999999999999999999998% of the time it will be the last person banned or kicked.
July 30, 2005, 5:56 AM
LivedKrad
[quote author=HdxBmx27 link=topic=12372.msg122501#msg122501 date=1122700992]
But also Simply Unbanning both realms would work to.

[/quote]
[quote author=LivedKrad.fe link=topic=12372.msg122486#msg122486 date=1122692093]
Have the bot cycle through the list of possible gateway extensions, all two of them.

USEast:
@Azeroth
@USEast

USWEST:
@Lordaeron
@USWest

EUROPE and ASIA:
@Europe and @Northrend, I don't know the others (if there are any).
[/quote]

What I meant, Loud, is that there are only two possible gateway extensions after someone is banned. Either it is "@Azeroth,Lordaeron,Northrend" or it is "@USWest, @USEast, or @Europe". All you have to do is ban/unban the name + both extensions, and voila. You have added support to unban/ban Warcraft III / TFT, Diablo II, Diablo II: LoD, Starcraft, Starcraft: Broodwar, Starcraft Japan, Starcraft Shareware, Diablo Shareware, Diablo Retail and Wacraft II: Battle.net Edition clients!

[quote author=Loud link=topic=12372.msg122487#msg122487 date=1122692419]
Cycling through them would do me what good...? ???

I don't grasp what you just said at alllll bro... Do you mean have it add both? Or what? I NEED USEFUL COMMENTARY GUYS...
[/quote]

I don't see how my comment can be any more useful if you don't understand what I'm trying to convey.
July 30, 2005, 6:24 AM
Loud
Ahhh, I see, sorry I was half asleep while I was posting last night, hmmmmmmmmm maybe doing it with both servers is the correct way to go... It would mean I would have to change the list to reset after 312 instead of 156 (Isn't 156 ban limit?)... But that's no problem. Well, thanks for your suggestions... =P Now time to go code my lame mod bot, peace.
July 30, 2005, 4:08 PM
LoRd
[quote author=Loud link=topic=12372.msg122533#msg122533 date=1122739692]Isn't 156 ban limit?)[/quote]

It's 80 per op.
July 30, 2005, 6:08 PM
Loud
You sure about that...? I have heard that one too, but I don't think it's true because I have seen 10 ops unable to hold back 400-500 bot loads...
July 30, 2005, 6:12 PM
LoRd
[quote author=Loud link=topic=12372.msg122552#msg122552 date=1122747149]
You sure about that...?[/quote]

It is, and always will be, 80 per op.
July 30, 2005, 6:24 PM
R.a.B.B.i.T
[quote author=Loud link=topic=12372.msg122552#msg122552 date=1122747149]
You sure about that...? I have heard that one too, but I don't think it's true because I have seen 10 ops unable to hold back 400-500 bot loads...
[/quote]Proxies, man.
July 30, 2005, 6:43 PM
Loud
No, I mean... 80 bans per ops, then you have 10 ops, according to this theory you should be able to easily hold back a 400 or 500 bot load, with about 300 to spare... But I've seen it happen, and they DON'T stay out...
July 30, 2005, 7:00 PM
Archangel
Because there should be double, triple, etc.. bans.
July 30, 2005, 8:00 PM
Loud
Mmm, that is entirely possible... I am just going to test the ban limit one day (When I have enough keys...). I would only need 160, hmmm...

Oh, and ArchAngel, thank you for that module dealing with 0x75, it helped me a LOT. =)
July 30, 2005, 8:34 PM
Archangel
[quote author=Loud link=topic=12372.msg122566#msg122566 date=1122755655]
Mmm, that is entirely possible... I am just going to test the ban limit one day (When I have enough keys...). I would only need 160, hmmm...

Oh, and ArchAngel, thank you for that module dealing with 0x75, it helped me a LOT. =)
[/quote]

Heh no problem but wasnt it 0x7D? lol
July 30, 2005, 9:16 PM
LivedKrad
He said 0x75! Hush mortal!
August 1, 2005, 1:02 AM
Loud
My bad, I come home from work and watch TV until 1, then come to code my bot... As a result, I make many errors (like the one you just showed), causing me infinite headaches! Oh, and thanks again! =P
August 1, 2005, 4:00 AM

Search