StealthBot.net: Greet Manager Script - StealthBot.net

Jump to content

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Greet Manager Script

#1 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted February 01, 2010 - 04:05 AM

Greet Manager

Author: The-Black-Ninja
Version: 1.71 Revision 1
Description: Sets and manages greets for users for common categories like; Username, Clans, Game products, Access, Flags, etc.

Overview:
You can use this manager to set up greets for a variety of variables; greets based on clan tag, individual greets based on username, greets based on access/flags, greets based on their clan rank in the bot's clan, and if they have any "tags" in their name. This manager has the built-in greet variables, but it also exposes the channel stats object, so you will be able to include icon names, ladder tiers, character names for diablo users, etc.

Commands:
greetui (on / off) = Enables or disables the greet manager UI. Bot console only.

Alternatively, you can use the menu item, found in the Scripting > Greet Manager pull down menu, to enable the UI instead of using the command.

Important Notes:
  • To alter a greet, click the greet you wish to edit, alter the desired fields, then click the Apply Changes button.
  • To create a new greet, you MUST click the New Greet button.
  • You are not allowed to have duplicate greets with the exact same fields


Hopefully there aren't too many bugs, I've tested it quite a bit, but there are bound to be some, so please let me know about them and try to explain how you got them; buttons you pressed, what you altered, user's aren't being greeted with the proper greeting, etc.


Common Setups:
  • Generic greet to all users
    • Greet: Whatever your greet is
      Username: All users
      Every other field is left blank

  • Greet for Warcraft III Frozen Throne only:
    • Greet: Whatever your greet is
      Product: W3XP
      Every other field is left blank

  • Greet for your clan tag AND for users ranked Grunt:
    • Greet: Whatever your greet is
      Clan Tag: Your 4-character clan abbreviation
      Clan Rank: 2
      Every other field is left blank

Attached File(s)

  • Attached File  Greet.txt (76.92K)
    Number of downloads: 1298


#2 User is offline   Irrelevant Icon

  • Resident Wonder
  • PipPipPip
  • Group: Senior Members
  • Posts: 156
  • Joined: October-07 09

Posted February 01, 2010 - 05:28 AM

View PostThe-Black-Ninja, on 31 January 2010 - 11:05 PM, said:

Greet Manager

NOTE: This is the beta version only. I haven't wrote the part where it greets users yet, I just have the UI set up, so play around with it and get your greets all ready and stuff. I'll be working on it more throughout the week. If there are any UI bugs that you find, please post them here. Try your best to say what you did to find the bug so I can find it too :)

Author: The-Black-Ninja
Version: 1.0 Revision 0
Description: Sets and manages greets for users for common categories like; Username, Clans, Game products, Access, Flags, etc.

Commands:
greetui (on / off) = Enables or disables the greet manager UI. Bot console only.

Important Notes:
  • This is the beta version. It will not greet users yet, this is only meant for you to get familiar with the script and set up your greets.


beautiful work as always Heather.... this looks very promising.
STEALTH Bot 2.7 Build whatever ----> there is no substitute !

#3 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted February 01, 2010 - 05:31 AM

Thank you :) I'll add some explanations of what the Clan Rank stuff is (1 to 4) in the next update. I just caught it now.

#4 User is offline   Novynn Icon

  • Silver Member
  • PipPipPipPipPip
  • Group: Senior Members
  • Posts: 873
  • Joined: October-07 09

Posted February 01, 2010 - 05:38 AM

Looks like it has great potential. Excellent work, no bugs so far.

#5 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted February 01, 2010 - 03:40 PM

Good to hear the UI is working alright. I caught a few mistakes in the variable list, but they were so minute that I doubt anyone else would've spotted them right away.

I think I'm going to make it so users have to change anti-spam settings in the scripts.ini and not in the greet manager itself because this is only a "greet manager", meaning it's only managing greets themselves.

#6 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted February 02, 2010 - 05:11 AM

Version 1.1 now. Everything should be working :)

#7 User is offline   Roanapur Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 60
  • Joined: January-11 10

Posted February 02, 2010 - 10:51 PM

View PostThe-Black-Ninja, on 01 February 2010 - 09:11 PM, said:

Version 1.1 now. Everything should be working :)


Scripts a beauty but I can't figure out how to add greets.

#8 User is offline   tunefisch Icon

  • thunfisch/turnfisch
  • PipPipPip
  • Group: Members
  • Posts: 183
  • Joined: October-07 09

Posted February 02, 2010 - 11:18 PM

Great Script

@Eldritch: Type '/greetui on' inside your bot. Everything else is self explained.
Game Over! Final score: 29699

#9 User is offline   Roanapur Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 60
  • Joined: January-11 10

Posted February 03, 2010 - 05:23 AM

View Posttunefisch, on 02 February 2010 - 03:18 PM, said:

Great Script

@Eldritch: Type '/greetui on' inside your bot. Everything else is self explained.


Thx, I assumed it was on already.

#10 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted February 03, 2010 - 05:31 AM

It's "on" in the sense that it's loaded, but it's not visible until you type the command to make it so.

#11 User is offline   Roanapur Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 60
  • Joined: January-11 10

Posted February 03, 2010 - 05:52 AM

View PostThe-Black-Ninja, on 02 February 2010 - 09:31 PM, said:

It's "on" in the sense that it's loaded, but it's not visible until you type the command to make it so.


I seem to be having a problem editing a username. I set a greeting for a user and had the person join channel but the bot didn't greet. So I went to try and edit the username but when I clicked on the username I get this-

[09:39:09 PM] Scripting runtime error '94' in Greet Manager: (line 669; column 0)
[09:39:09 PM] Invalid use of Null: 'Replace'
[09:39:09 PM] Offending line: >>

-and none of the edit fields appear.

#12 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted February 03, 2010 - 06:35 AM

What were the fields?

Nvm, found it. Fixing.

Done.

Actually I found another bug, stand by.

Damn, I'll have to fix this tomorrow :(

#13 User is offline   kiwi Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 11
  • Joined: January-04 10

Posted February 03, 2010 - 11:47 PM

will this script prevent the bot from flooding itself to ip ban?

#14 User is offline   Roanapur Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 60
  • Joined: January-11 10

Posted February 04, 2010 - 04:50 AM

View Postkiwi, on 03 February 2010 - 03:47 PM, said:

will this script prevent the bot from flooding itself to ip ban?


In the scripts.ini you can change these settings.

[Greet Manager]
If users join these seconds of the last greeted user, they will not be greeted.=
greet_buffer=7
Minutes users will need to wait before they can be greeted again.=
greet_wait=120
If the bot's queue reaches this level, greets will stop until the queue load decreases.=
greet_qabort=7
How the bot will greet users. 1 - All Chat, 2 - Emote, 3 - Whisper=
greet_dsp=3


If you do flood out, change the settings.

#15 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted February 04, 2010 - 05:31 AM

Okay, Neco and myself have tested this. Check the updates if you really care, but these last few updates was a string of fixes; I'd fix one problem, then find two others, get those fixed, then find another two problems...blah. Anyways, here we go again. Editing greets should be working properly, as well as greeting people.

#16 User is offline   Roanapur Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 60
  • Joined: January-11 10

Posted February 04, 2010 - 06:40 AM

View PostThe-Black-Ninja, on 03 February 2010 - 09:31 PM, said:

Okay, Neco and myself have tested this. Check the updates if you really care, but these last few updates was a string of fixes; I'd fix one problem, then find two others, get those fixed, then find another two problems...blah. Anyways, here we go again. Editing greets should be working properly, as well as greeting people.


Hate being the barer of bad news but:

Quote

[10:28:00 PM] -- Theft [31ms] has joined the channel using StarCraft: Brood War (830 wins).
[10:28:00 PM] Theft
[10:28:00 PM] 0
[10:28:00 PM] 0
[10:28:00 PM] ahead
[10:26:11 PM] -- Phoenix[Legion] [31ms] has joined the channel using StarCraft: Brood War (0 wins).
[10:26:12 PM] Phoenix[Legion]
[10:26:12 PM] 2
[10:26:12 PM] 0
[10:26:12 PM] ahead

It says 2 0 ahead when someone who is on the greet list joins and 0 0 ahead when someone who isn't on the list joins.
They both said that they didn't receive any message from bot.

Also:

Quote

[10:22:52 PM] Scripting runtime error '94' in Greet Manager: (line 738; column 0)
[10:22:52 PM] Invalid use of Null: 'Replace'
[10:22:52 PM] Offending line: >>
[10:22:58 PM] Scripting runtime error '94' in Greet Manager: (line 738; column 0)
[10:22:58 PM] Invalid use of Null: 'Replace'
[10:22:58 PM] Offending line: >>

Same problem as last time.(Can't edit users)

#17 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted February 04, 2010 - 12:14 PM

Okay, this time, I can't reproduce the error. Give me the greet you're using that's causing the error.

#18 User is offline   oblivious Icon

  • Full Member
  • PipPipPip
  • Group: Senior Members
  • Posts: 315
  • Joined: October-25 09

Posted February 04, 2010 - 02:20 PM

Quote

This error occurs when you have used a Replace function on your page, for instance, to maintain line breaks from a Memo field, and the particular field your recordset has returned is empty (Null).


So perhaps the database is empty (or the particular field)?

#19 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted February 04, 2010 - 03:15 PM

The problem is that his line 738 doesn't match MY line 738, but regardless, it's trying to read a greet that is empty, which I went to great length to prevent a greet being saved/altered with a null greet field, which is why I'm asking him what fields he entered to create the greet.

#20 User is offline   Roanapur Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 60
  • Joined: January-11 10

Posted February 04, 2010 - 04:23 PM

View PostThe-Black-Ninja, on 04 February 2010 - 04:14 AM, said:

Okay, this time, I can't reproduce the error. Give me the greet you're using that's causing the error.


Did some more testing and found that 2 users I added in version 1.2 are the ones I can't edit but I can edit users who are recently added and they also receive a greet.
But I still get the 0 0 ahead for users who haven't been added and 1 20 now for users who have been added.

Quote

[08:04:31 AM] -- Rtree94 [188ms] has joined the channel using StarCraft: Brood War (43 wins).
[08:04:31 AM] Rtree94
[08:04:31 AM] 1
[08:04:31 AM] 20
[08:04:32 AM] <To Rtree94> Greetings.

Is that intentional?

#21 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted February 04, 2010 - 04:29 PM

It was meant for debugging purposes. I forgot to remove them. Next update I'll clean it up.

If you have Microsoft Access, you can go into your database and delete the rows you don't want anymore. Click the row number or entry or whatever in that left axis, then right click and choose Delete Row, then save. You won't mess anything up cause this database is meant to accept deleted records.

#22 User is offline   Roanapur Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 60
  • Joined: January-11 10

Posted February 05, 2010 - 12:30 AM

Is working great now. Thanks ninja.

#23 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted February 05, 2010 - 12:49 AM

Good good, I'll give it the update to get rid of those addchat messages.

#24 User is offline   kiwi Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 11
  • Joined: January-04 10

Posted February 05, 2010 - 01:19 AM

how do i set it to greet every user coming in the channel?

#25 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted February 05, 2010 - 01:20 AM

Make the same greet for all 7 game product codes; STAR, D2DV, SEXP, W2BN, D2XP, WAR3, W3XP.

Hmm...that kinda seems like the gay way to do things...I wonder if I can make an easier way.

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users