Author Topic: Script Request  (Read 5367 times)

0 Members and 2 Guests are viewing this topic.

Offline 3ICE

  • Newbie
  • *
  • Posts: 8
    • View Profile
Script Request
« on: May 27, 2007, 11:15:55 am »
Hey there!
I <3 this bot because it works with war3. Ad it supports MASSbotting ^^ (I have quite a few keys.)

So I'd like to make some Feature Requests (yay more work for u)
I am using Windows.

The following plugins would be MUCH appreciated:
User Leave Log and Messaging:
I would like a script similar to this.
It would just look for event: user leaves channel
and do a /whois on him then
addchat name of user has joined a (war3/w3xp/sexp/star/whatsoever) game called: (result of whois).
and it would also output it into a logfile similar to this:
Code: [Select]
steveelias               | NEW ART OF DEFENSE NO NOOB.     | Warcraft III      | 5/4/2007 1:34:53 AM
chaosking2006            | Elite Snipers.                  | Warcraft III      | 5/4/2007 1:41:41 AM
YzRiDeR72                | moh 2.                          | Warcraft III      | 5/4/2007 1:41:55 AM
chaosking2006            | Paintball.                      | Warcraft III      | 5/4/2007 1:41:59 AM
chaosking2006            | FFA!!! 3v3!!!.                  | Warcraft III      | 5/4/2007 1:42:13 AM
steveelias               | ART OF DEFENSE.                 | Warcraft III      | 5/4/2007 1:47:34 AM
steveelias               | ART OF DEFENSE RM NO LEAVER .   | Warcraft III      | 5/4/2007 1:51:57 AM
YzRiDeR72                | Polar Escape 5 rm.              | Warcraft III      | 5/4/2007 1:53:35 AM
Flaming-icee             | Legendary Zeros!.               | Warcraft III      | 5/4/2007 1:53:39 AM
Ninety-Nine              | !-!-!-SPM-!-!-!.                | Warcraft III      | 5/4/2007 2:01:30 AM
monkeyelf                | ===WINTERMAUL===.               | Warcraft III      | 5/4/2007 2:01:50 AM
binyo                    | 10 hero siege Chaos2.8.         | Warcraft III TFT  | 5/4/2007 2:19:54 AM
Flaming-icee             | evolves.                        | Warcraft III      | 5/4/2007 2:23:38 AM
Flaming-icee             | evolves.                        | Warcraft III      | 5/4/2007 2:24:03 AM
danielet                 | Slide Kitty Slide RM2!.         | Warcraft III TFT  | 5/4/2007 2:26:15 AM






And the second one i would like is this auto invite script for warcraft III clans:
Code: [Select]
Invite
'1.1
'Written By: TutMatt <3
'Used Jacks Plug for ref... Ty
'Does not invite acording to levels.

Reqp = 45 'Req for percent, set to 0 if any1 can join
Reqw = 40 'Req for wins, set to 0 if any1 can join
Reqp2 = 75 'Req for percent, set the above one if you dont want this mayn options to join
Reqw2 = 50 'Req for wins, set the above one if you dont want this mayn options to join
Reqp3 = 50 'Req for percent,set the above one if you dont want this mayn options to join
Reqw3 = 200 'Req for wins, set the above one if you dont want this mayn options to join
relm = "azeroth" 'You can use lordaeron, azeroth, nothrend, or kalimdor

'Dont Edit Under Here
'------------------------------------------------------------------------------

Sub Invite_Event_UserTalk(Username, Flags, Message, Ping)
If left(lcase(message),6) = botvars.trigger & "joinc" Then
getdbentry username, myflags, myaccess
Addq "Searching..."
Content = SciNet.OpenURL("http://www.battle.net/war3/ladder/w3xp-player-profile.aspx?Gateway=" & relm & "&PlayerName="&username)
If Instr(Content, "Error Encountered") Then
AddQ "Error Encountered"
ElseIf Instr(Content, "Player Not Found!") Then
AddQ "Invalid user."
Else
pos1 = instr(content, "Total")
pos1 = instr(pos1,content,"%") - 20
pos1 = instr(pos1,content,">")+1
pos2 = instr(pos1,content," %")
Percent = mid(content, pos1, pos2-pos1)

pos1 = instr(content, "Total")
pos1 = instr(pos1, content, "Row")+5
pos2 = instr(pos1, content, "<")
Wins = mid(content, pos1, pos2-pos1)

Addq "You have: " & wins & " wins, and your % is: " & percent
tag = LCase(GetInternalDataByUsername(Username, 0))

If tag <> "" Then
addq "Sorry you are already in a clan, leave that clan for more options."
ElseIf int(wins) >= reqw and int(percent) >= reqp Then
addq "You Meet The Reqs, and Invitation Was Sent."
addq Command(BotVars.Username, "/invite " & Username, True)
ElseIf int(wins)>= reqw2 and int(percent) >= reqp2 Then
addq "You Meet The Reqs, and Invitation Was Sent."
addq Command(BotVars.Username, "/invite " & Username, True)
ElseIf int(wins) >= reqw3 and int(percent) >= reqp3 Then
addq "You Meet The Reqs, and Invitation Was Sent."
addq Command(BotVars.Username, "/invite " & Username, True)
Else
addq "Sorry you did not meet the (auto invite) reqs, this dosnt necessarly mean that your not good enough to enter the clan, talk to a chieftain/shaman about joining."
End If
End if
End If
End Sub
(ofc translated to java :))

The third request was already asked but i'd like to ask it again.
Custom commands.
In my old SB bot i had 351 commands like:
.welcome %username%
Welcome in Clan mFH, %username%!

.hi
Hey %username%!

.lol
%username% laughs out loudly.

.mFH
Clan Mazers for Honor is a MAZING clan for both RoC and TFT players. Type in: .shams .members .req .sreq .tournaments .info .join !join .mrc for more related commands.

and so on...
A simple script what would just execute one or two lines of commands defined in the custom command.
eg: a database:
CMD: Flag: EXE:
hi     AECO Hey %username%!
afk   ABEGCO %username% has went AFK.
invite INSXW /!callplugin!/ auto invite %argument1%
The script should support many variables like the stealthbot custom commands:
%a %u %p %f %c %rest %1 %2 %3 %4 and so forth.
more reference:
http://www.stealthbot.net/board/index.php?showtopic=19666

THX in advance
3ICE

ps: Oo my post is so messy :(

Offline Joe

  • B&
  • Moderator
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: Script Request
« Reply #1 on: May 28, 2007, 04:15:27 am »
We support massloading? lol.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline 3ICE

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Script Request
« Reply #2 on: May 28, 2007, 06:12:53 am »
u don't?
well i had 41 bots in a channel thats a weak massloading isn't it? (but thats just a sidenote not the important part of my post)

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Script Request
« Reply #3 on: May 28, 2007, 08:41:11 am »
Just because it's possible, doesn't mean it's supported.

And by the way, if you bump one more time, I'll kill you. Or maybe just ban. :P

Offline 3ICE

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Script Request
« Reply #4 on: May 28, 2007, 04:25:21 pm »
Sorry but, they looked so cool -.- i had to press the Post button... :)

Could anyone please write these scripts i requested?
I would really like to use them. And i would appreciate it.

Offline Newby

  • x86
  • Hero Member
  • *****
  • Posts: 10877
  • Thrash!
    • View Profile
Re: Script Request
« Reply #5 on: May 29, 2007, 12:18:23 am »
I'm not sure anybody actively develops or maintains JavaOp2 to the point where they'd actually care to write these scripts for you.

Now if you offered some $ for their development, I'm sure someone here would write them for you. But that's just my suggestion. I'm not sure how vital these scripts are to you.
- Newby
http://www.x86labs.org

Quote
[17:32:45] * xar sets mode: -oooooooooo algorithm ban chris cipher newby stdio TehUser tnarongi|away vursed warz
[17:32:54] * xar sets mode: +o newby
[17:32:58] <xar> new rule
[17:33:02] <xar> me and newby rule all

I'd bet that you're currently bloated like a water ballon on a hot summer's day.

That analogy doesn't even make sense.  Why would a water balloon be especially bloated on a hot summer's day? For your sake, I hope there wasn't too much logic testing on your LSAT. 

Offline 3ICE

  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Script Request
« Reply #6 on: May 29, 2007, 03:18:46 am »
Ah okay then never mind ill write it myself.
Im just so lazy and my scripts aren't that good. I wanted some1 more into scripting to do it for US.

Im still gona visit this board just in case some1 writes it 4 me :)

See you later guys.

Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Script Request
« Reply #7 on: May 29, 2007, 08:56:57 am »
Well, it's not that nobody develops, there are some people that do. However, the people that do don't support things like massloading or other annoyances. I'm not going to stop anybody from doing it, but I'm also not going to encourage it.