StealthBot.net: Recruit & Apply script - StealthBot.net

Jump to content

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

Recruit & Apply script

#1 User is offline   The-Black-Ninja Icon

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

Posted August 29, 2009 - 04:45 AM

Recruit and Apply

Author: The-Black-Ninja
Version: 1.98 Revision 1
Description: Automatically sets specific requirements for potential clan recruits and will automatically invite them or place them onto a list for manual invitation.

Commands:
These are the full command names, much shorter aliases are found in the command manager.

apply = Initiates the script to check the requirements (if any) of user performing the command and will invite them/place onto the list accordingly. 0 access.
recAutoInvite
[on / off] = Enables/disables automatic inviting to the clan. 200 access.
recCheckReqs [on / off] = Enables/disables the checking of all requirements. 200 access.
recCheckLevel [on / off / #] = Enables/disables the checking of levels or sets the level needed. 200 access.
recCheckPercent [on / off / #] = Enables/disables the checking of overall win percentages or sets the percent needed. 200 access.
recCheckRacePercent [on / off / add / rem / #] (race) If using the # argument = Enables/disables the checking of race specific win percentages, adds/removes races, or sets the percent needed. 200 access.
recCheckRaceWins [on / off / add / rem / #] (race) If using the # argument = Enables/disables the checking of race specific wins, adds/removes races, or sets the wins needed for the specified race. 200 access.
recCheckWins [on / off / #] = Enables/disables the checking of overall wins, or sets the amount of wins needed. 200 access.
recJInvite [on / off / add / rem] = Enables/disables the inviting of specific members upon channel join, adds/removes users from the invite on channel join list. 200 access.
recRead = Displays the recruits waiting on the recruit list. 200 access.
recRecruit [add / del] = Adds/removes users from the recruit list. 200 access.
recStatus = Displays how the recruit script is processing recruit applications. 200 access.


Example Usages:
For the " recCheckRaceWins " and the " recCheckRacePercent " commands, you can use a shortcut to automatically add a new race and set that race's wins without having to do it through two commands:
recCheckRaceWins add orc 20 = If the orc race is not already being checked, it will add that race to the list and set its value to whatever you specify, otherwise it will default to 0. If the race is already being checked, it will just update that race to the new value.



Important Notes:
  • You MUST REMOVE your recruit PLUGIN from your /plugins folder, otherwise there will be all kinds of conflicts and shit will go down and you will implode your own skull.
  • The scripts INI file can be altered, but the only lines that need to be edited are above the "warning" line. These settings are HIGHLY recommended that you edit them, otherwise the script may not work as desired.
  • Command aliases and access/flags can be edited in the Command Manager, not the script itself.
  • There is an automatic apply command lock for 10 seconds (found in the INI file, can be edited) that will ignore all further apply commands for X amount of seconds. There will be no message of the cooldown, this is to prevent idiots from getting wise and waiting for the time to run out before using the apply command again.
  • It is strongly recommended that you look through the INI to see all the settings available and look at the Command Manager for information on the commands themselves.
  • The GetUserIcon function is not in use at the moment and some code within the 0x44 packet recieved case is not used. These are here for future script expansions, if the need arises, or even if users are curious as to what the packet gives you.

Attached File(s)



#2 User is offline   The-Black-Ninja Icon

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

Posted September 01, 2009 - 11:00 PM

Should I allow the CRS to communicate with this for users who are managing Diablo/SC clans? It would check their wins and use the CRS to add them to the database for their "clan"?

#3 User is offline   PhiX Icon

  • Notice the ownage.
  • Icon
  • Group: Administrators
  • Posts: 8,388,607
  • Joined: July-31 09

Posted September 02, 2009 - 06:53 PM

Maybe you should make that in an addon script? Seems a bit overkill.
PhiX

BNLS: phix.no-ip.org

Please refrain from sending me personal messages regarding technical support issues. Use the forums, that is what they are there for.

#4 User is offline   The-Black-Ninja Icon

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

Posted September 02, 2009 - 11:16 PM

Yeah...or maybe just include it into the CRS when it inevitably gets converted over.

#5 User is offline   baydiver Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: September-09 09

Posted September 18, 2009 - 08:56 PM

why can't i download the recruitment.txt? -.-
Posted ImagePosted Image
Posted Image

#6 User is offline   PhiX Icon

  • Notice the ownage.
  • Icon
  • Group: Administrators
  • Posts: 8,388,607
  • Joined: July-31 09

Posted September 18, 2009 - 10:56 PM

Not sure, with that little information provided. But it wouldn't work for you anyways. It's a script for the new StealthBot version and doesn't work on v2.6R3.
PhiX

BNLS: phix.no-ip.org

Please refrain from sending me personal messages regarding technical support issues. Use the forums, that is what they are there for.

#7 User is offline   baydiver Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: September-09 09

Posted September 19, 2009 - 01:25 AM

yeah...damn read that by now that this was 2.7 version...i tried the old version for 2.6r3, too, but it didn't work for me...dunno why...sent ninja a pm wth a description of my problem on the old board...sry for my request in this topic before...seems like i was still half asleep
Posted ImagePosted Image
Posted Image

#8 User is offline   The-Black-Ninja Icon

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

Posted October 21, 2009 - 10:42 PM

Massive bump, but I thought I'd make a useful update:

Instead of listing users that can recruit, I set it as two options; whisper users with a flag and whisper shamans. This is so that you're not having to manually go into the ini and take out/add new names each time.

For those of you who are downloading the script from this thread for the first time, ignore this message.


Open up your recruit_settings.ini, in the [settings] section, replace the lines:

Quote

'// Names of users that are able to invite using through the bot OR through BNet (Shamans and Chief). Leave as n/a to disable this feature.
'// This used to notify the users of new recruits when they join the channel. Add more users by following the format: User1*User2*User3*etc
recruiter_list=n/a
With:

Quote

'// These two options will whisper a shaman or a user with the specified flag. To disable the recruit_Flag option, leave as n/a. To disable the recruit_Shams option, set to False.
'// Add more flags by separating each with a comma; X,Y,Z
recruiter_Flag=F
recruiter_Shams=True
So it all looks like:

Quote

apply_delay=1d
'// These two options will whisper a shaman or a user with the specified flag. To disable the recruit_Flag option, leave as n/a. To disable the recruit_Shams option, set to False.
'// Add more flags by separating each with a comma; X,Y,Z
recruiter_Flag=F
recruiter_Shams=True
'// Blocked users that will not be able to use the apply command. Leave as n/a to disable, do NOT leave blank. Add more users by following the format: User1*User2*User3*etc


#9 User is offline   siN- Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: November-17 09

Posted November 18, 2009 - 01:31 AM

Hey, i found the following bugs:

recjinvite rem Username does not work.
recjinvite does not auto invite users to the clan!
I used the following commands:
.recjinvite add USERNAME
.recjinvite on

im getting the following error when USERNAME joins channel:

Scripting runtime error '500' in recruit: (line 92; column 0)
[02:22:08 AM] Variable ist nicht definiert: 'name' (In English: Undefiend variable 'name')
[02:22:09 AM] Offending line: >>

And isnt there anything like "recread" for the users in the recjinvite list?

Thx!

#10 User is offline   The-Black-Ninja Icon

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

Posted November 18, 2009 - 01:46 AM

Works for me.

Quote

/recjinvite add test
[20:41:19.343] Recruit Script:: " test " was added; they will be invited next time they join the channel.
/recjinvite rem test
[20:41:27.484] Recruit Script:: " test " was removed; they will no longer be invited next time they join the channel.
/recjinvite on
[20:41:40.140] Recruit Script:: Auto-invite to clan on join enabled.
/recjinvite add off
[20:41:42.359] Recruit Script:: Auto-invite to clan on join disabled.


Currently no, there isn't a way for you to see who's on the join-invite list and I don't know why you're getting that error, I've never seen anyone get that error with this script yet.

I made a minor change, so download the new version and see if it still errors.

#11 User is offline   siN- Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: November-17 09

Posted November 18, 2009 - 12:09 PM

Quote

/recjinvite add test
[20:41:19.343] Recruit Script:: " test " was added; they will be invited next time they join the channel.
/recjinvite rem test
[20:41:27.484] Recruit Script:: " test " was removed; they will no longer be invited next time they join the channel.
/recjinvite on
[20:41:40.140] Recruit Script:: Auto-invite to clan on join enabled.
/recjinvite add off
[20:41:42.359] Recruit Script:: Auto-invite to clan on join disabled.


same here,
BUT:

if i use "/recjinvite rem test", "test" is still in the .ini : "cj_invite_users=test"
I do not get the error msg again, but autoinvite still does not work.

#12 User is offline   The-Black-Ninja Icon

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

Posted November 18, 2009 - 06:53 PM

Hmm...I'll have to check that out later on tonight.

#13 User is offline   The-Black-Ninja Icon

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

Posted November 18, 2009 - 10:15 PM

Nope, sorry, they're being added and removed correctly:

Quote

/recjinvite add test
Recruit Script:: " test " was added; they will be invited next time they join the channel.
'// Ini file: cj_invite_users=test

/recjinvite add test2
Recruit Script:: " test2 " was added; they will be invited next time they join the channel.
'// Ini file: cj_invite_users=test*test2

/recjinvite rem test
Recruit Script:: " test " was removed; they will no longer be invited next time they join the channel.
'// Ini file: cj_invite_users=test2

I think I fixed it so that it will invite the users, though.

#14 User is offline   Pimp8426 Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 1
  • Joined: September-16 09

Posted November 25, 2009 - 01:17 AM

Hey sorry for the major bump, but when a user types .apply in clan, I get an error:
[08:17:12 PM] <sogam> .apply
[08:17:21 PM] Scripting runtime error '450' in recruit: (line 557; column 0)
[08:17:21 PM] Wrong number of arguments or invalid property assignment: 'ProcessRequirements'
[08:17:21 PM] Offending line: >>
[08:17:21 PM] Scripting runtime error '450' in recruit: (line 557; column 0)
[08:17:21 PM] Wrong number of arguments or invalid property assignment: 'ProcessRequirements'
[08:17:21 PM] Offending line: >>
and i can't figure out why the bot won't auto-invite. Any help?

#15 User is offline   The-Black-Ninja Icon

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

Posted November 25, 2009 - 02:16 AM

Issue resolved in Clan Hang.

Problem: The line "Command BotVars.Username...." within the apply sub conflicted with the Command object that's already being called within the sub.

Solution: Made the Command BotVars.... into its own function. Download the new update.

#16 User is offline   siN- Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: November-17 09

Posted November 30, 2009 - 02:45 PM

View PostThe-Black-Ninja, on 25 November 2009 - 03:16 AM, said:

Issue resolved in Clan Hang.

Problem: The line "Command BotVars.Username...." within the apply sub conflicted with the Command object that's already being called within the sub.

Solution: Made the Command BotVars.... into its own function. Download the new update.



apply does not work anymore now ^^
later ill test if "recjinvite on" autoinvite on join will work.

#17 User is offline   The-Black-Ninja Icon

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

Posted November 30, 2009 - 05:28 PM

It just...stopped working out of the blue? Did you change anything?

#18 User is offline   siN- Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: November-17 09

Posted November 30, 2009 - 07:35 PM

View PostThe-Black-Ninja, on 30 November 2009 - 06:28 PM, said:

It just...stopped working out of the blue? Did you change anything?


I downloaded new version and i changed nothing. when i use "apply" with a account, who is already in the clan- the bot recognize the command and displays: ""username", you must leave Clan "clantag" before applying". This is how it should work i think!

BUT:

if a came online with a new username and type: ".apply" nothing happens.

About the autoinvite with "recjinvite" <= this never worked before (but i havent tested it with newest version)
Hope you can fix this stuff!

thx

btw: Im sry for my bad english ^^

This post has been edited by siN-: November 30, 2009 - 07:37 PM


#19 User is offline   The-Black-Ninja Icon

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

Posted November 30, 2009 - 09:25 PM

The recjinvite command turns itself on and off no problem:

Quote

/recjinvite on
[16:24:15.055] Recruit Script:: Auto-invite to clan on join enabled.
/recjinvite off
[16:24:16.633] Recruit Script:: Auto-invite to clan on join disabled.


Also, type /recstatus and give me the output because mine works fine:

Quote

[16:33:48.023] -- The-Test-Ninja [62ms] has joined the channel using WarCraft III: Reign of Chaos (Level: 0, icon tier Random, peon icon).
[16:34:00.602] <The-Test-Ninja> <3apply
[16:34:01.008] <The-Black-Ninja> The-Test-Ninja, you have been placed on the clan abc recruit waiting list. A Shaman or Chief will be notified.
/recstatus
[16:34:35.398] Recruit Script:: Checking for no ladder requirements. Placing onto the recruit list.


#20 User is offline   siN- Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: November-17 09

Posted December 01, 2009 - 01:35 PM

ok sry i set reccheckreqs to on. Thats why it did not work.

But it still semms like the apply command ignores any recuirements!

For expample:

/reccheckracewin add orc 50
/reccheckracewin on
That is not a valid command. Type /help or /? for more info.

So i changed: racewin_req=Flase to racewin_req=True manually in the ini.
=>reloaded scripts
=>joining the battle.net channel with a ORC account with 25 (<50) wins => .apply => ""username", you have been placed on the clan "clantag" recruit waiting list. A Shaman or Chief will be notified."

#21 User is offline   The-Black-Ninja Icon

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

Posted December 01, 2009 - 05:59 PM

Perhaps you should look at the commands again...

recCheckRaceWin isn't a command...however recCheckRaceWins is...

#22 User is offline   siN- Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: November-17 09

Posted December 05, 2009 - 12:43 AM

View PostThe-Black-Ninja, on 01 December 2009 - 06:59 PM, said:

Perhaps you should look at the commands again...

recCheckRaceWin isn't a command...however recCheckRaceWins is...

sry my fault!!!
Now i also know why recjinvite did not work: cause there are more than 40 members in our clan, so i changed "Clan.Members.Count <40" to "Clan.Members.Count < 150#

Works fine now!

#23 User is offline   The-Black-Ninja Icon

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

Posted December 05, 2009 - 12:51 AM

Ah, that would be my fault then. Clans are supposed to be limited to 100. Updating now.

#24 User is offline   werewolf100 Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 5
  • Joined: January-07 10

Posted January 09, 2010 - 11:14 AM

Hi The-Black-Ninja, :-)
maybe you remember me a little of last Stealthbot Forum.
So i get an error if anyone types .apply and should get set on reclist

[11:02:26 AM] <PuNch-> .apply
[11:02:26 AM] Scripting runtime error '5' in recruit: (line 410; column 0)
[11:02:26 AM] Invalid procedure call or argument: 'DateAdd'
[11:02:26 AM] Offending line: >>
[11:02:26 AM] Scripting runtime error '5' in recruit: (line 410; column 0)
[11:02:26 AM] Invalid procedure call or argument: 'DateAdd'
[11:02:26 AM] Offending line: >>
[11:02:37 AM] <PuNch-> .recread
[11:02:37 AM] <www.diua.co.cc> There are no recruits on the recruit list.
[11:07:11 AM] Recruit Script:: Checking for 80 Wins, 53% Overall, Level 18. Placing onto the recruit list.

Maybe you have some suggestions how to fix it..
Please help me, much players are trying to join the Clan via this command, thanks. :-)
Server: Northrend
- tested on Windows 7 64Bit German Ultimate
- tested on Windows XP 32Bit English Professional
.. both throw an error. Think the VB Function DateAdd is missing, but how to get it avaible for the script?

Version of Script:
Script("Author") = "The-Black-Ninja"
Script("Major") = 1
Script("Minor") = 94
Script("Revision") = 1

#25 User is offline   The-Black-Ninja Icon

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

Posted January 10, 2010 - 05:22 AM

It's not missing. Go into your recruit_settings.ini, tell me what you have for apply_delay.

Also, don't PM me saying you wrote something on a post ever again. It not only annoys me, it takes time away from me actually answering scripting questions from other users who PM me, as well as answering stuff on the boards, so I really don't want to open a message with something saying, "hi, I made a post. help me." I check these forums every day and I respond to each one. I'll see your post sooner or later.

  • (5 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