Forums
First  << 1  2  3 >>  Last
Forum Main>>IRC General>> Universal TC Assistant (formerly Asshole)
PMV

ID: 1577993
Level: 57
Posts: 367
Score: 199
JFK PMV [1577993]Reply | Quote | Report

Thread created on Tue Apr 30, 2013 20:29:00
Last replied to on Sun Mar 23, 2014 18:31:30
Sometime ago I decided to write my own chaining bot in the mIRC scripting language. After adding more and more features, it became a pretty large and helpful bot for my faction.

It is currently has a fully featured chainbot, a revive tracker, stat storage bot, stat growth tracker and comparison script, crimes title list, player title list (of what's known anyways), several different reminder timers, spy storage, and a quote bot. It also has a nice little admin panel to change and customize options however you like it as you can see below:

BotACP.jpg

After some time and clearing any bugs I could find, I decided to release it to the public. It's free and will always be, so if you encounter someone who "bought this script" or trying to sell it, it's a scam. mIRC doesn't offer any sort of protection against tampering either, so you always will want to get the latest version from this post.



Latest version:

v5.3 released on Mar 23 2014



Download Links:

Make sure you back up your old bots entirely before updating.
5.0 is a very large overhaul of just about every section of the script. I've tested as much as I could with the help of a few others but there's always a chance that something goes funny.

This is also a large script, pastebin links might lag your browser. If you can't open it, grab the zip file instead.

Download the full bot here: PASTEBIN - ZIP FILE



Installation:

Note: by default the script will not respond to commands entered from the client that it's run on. So, you will need to run a separate instance of mIRC to be able to use the bot yourself.

- Download whichever version of the script you want.

- Set up your mirc as needed, register your bot's nick and add all the channels you want it to work in on the autojoin list within mIRC or on the server. The script will not do any auto-joining or identifying.

See: http://www.torn.com/forums.php?forumID=14&ID=11816924
Sections: #U01, #U08 and #S02-8 might be of some help on how to do this.

- Download and extract the script.

- Make an empty folder within the mIRC script folder and copy it in there.

If you aren't sure where it is, type "//echo $scriptdir" exactly without quote marks in mIRC to see the location of your script folder.

- Press ALT-R in mIRC and load it in "Remotes". When asked to run initialization commands, click yes.

- The bot will tell you what to do from then on. but in case you missed it: type /tcsetup to run the initial setup and answer all questions that popup. You will only ever have to do this once, it will generate all the files and folders that it needs, then take you from there.

To view the admin panel, right click on the channel window and go to the control panel option.



Updating:

- Download and extract the script.

- Replace the old tcbot.mrc with the new one within your script folder.

- mIRC will popup with a notice saying "Script has changed, run initialization commands." Click yes. It might pop up with another dialog saying the same thing basically, click yes again.

The script will automatically update everything it needs to and you're done!

If by chance you click "No" on the init commands dialog, just close mIRC and open it again. It should update to the latest version then. Check your status window to be sure.


Important Update Notes (bold pertains to latest version):

- 5.0 is a very large overhaul of just about every section of the script. Make sure you back up your old bots before updating.

- 4.7 introduced a new spy saving format so all your old saved spies will not work. You can convert them by using this quick and dirty script here: http://pastebin.com/vhpNCzc2

To run it, save the script as a text file and load it as a separate file in remotes. Then put the old spies.txt in the same folder as this script. Go into mirc, type /convspy2 and it will spit out a bunch of unreadable text very quickly. Ignore it.

When it's finished (not posting anymore text), you'll have a new file called spy.txt in the same folder as the converter, copy that into the bots folder and you should be set. Try to read a spy using the !spy command.

If you have issues with this, you can pastebin me your spies.txt file and I will run them through when I can and send you back the converted version.

- Upgrading from 4.3 to 4.4 will require a manual language reset. Go into the admin panel, language tab, then click reset button. Sorry about that



Command List:

You can see all the commands here: www.tornstats.com/tornbot/ or by typing !help in the channel.



Have fun and please let me know if you run across any glitches in here or by mail. I am also in IRC under the nick PMV.

Last Edited: Sun Mar 23, 2014 23:28:47
Super secret reinforced spam barrier 2.0
Divalicious


ID: 1594031
Level: 45
Posts: 602
Score: 239
[A]Divalicious [1594031]Reply | Quote | Report

Posted on Wed May 01, 2013 01:54:02
yayyy used this bot so know it's great!!!!

LostSoul_by_AgentDesignz_zps16ffb3f7.png

^^ by -Agent- ^^
Super secret reinforced spam barrier 2.0
PMV

ID: 1577993
Level: 57
Posts: 367
Score: 199
JFKPMV [1577993]Reply | Quote | Report

Posted on Thu May 02, 2013 06:26:00
Bump for quick 4.4 bugfix release. More bugs fixed for the bug fix god.

Super secret reinforced spam barrier 2.0
HavokGDI

ID: 133687
Level: 65
Posts: 1786
Score: 1069
~BS~HavokGDI [133687]Reply | Quote | Report

Posted on Sat May 04, 2013 10:13:40
Bump and rate

Christopherslogo.jpg
Super secret reinforced spam barrier 2.0
PMV

ID: 1577993
Level: 57
Posts: 367
Score: 199
JFKPMV [1577993]Reply | Quote | Report

Posted on Mon May 13, 2013 00:59:25
Bump for new 4.8 update. Many bugs, handled them!

Super secret reinforced spam barrier 2.0
HavokGDI

ID: 133687
Level: 65
Posts: 1786
Score: 1069
~BS~HavokGDI [133687]Reply | Quote | Report

Posted on Sat May 18, 2013 01:40:55
[19:38] <&Statues> Ending chain 3 with a total of 31 hits and 0 losses.
[19:38] <&Statues> The chain started at 1:59 am TC time, so we have been chaining for 39mins 6secs.
[19:38] <&Statues> We started with 6,653 respect and ended with 6,740, so our change was 87 respect! We averaged 1.68 respect per hit.
[19:38] <&Statues> List of Chainers:
[19:38] <&Statues> pyro - 26 hits, HavokGDI - 6 hits.

-----------------

Average is wrong, should be like 2.7

Christopherslogo.jpg
Super secret reinforced spam barrier 2.0
PMV

ID: 1577993
Level: 57
Posts: 367
Score: 199
JFKPMV [1577993]Reply | Quote | Report

Posted on Sun May 19, 2013 09:51:42
By HavokGDI [133687]
[19:38] <&Statues> Ending chain 3 with a total of 31 hits and 0 losses.
[19:38] <&Statues> The chain started at 1:59 am TC time, so we have been chaining for 39mins 6secs.
[19:38] <&Statues> We started with 6,653 respect and ended with 6,740, so our change was 87 respect! We averaged 1.68 respect per hit.
[19:38] <&Statues> List of Chainers:
[19:38] <&Statues> pyro - 26 hits, HavokGDI - 6 hits.

-----------------

Average is wrong, should be like 2.7


It subtracts the bonus respect.

(87 - 25 - 10) / 31 = ~1.68

Super secret reinforced spam barrier 2.0
Aurum

ID: 1544641
Level: 58
Posts: 2076
Score: 1744
THAurum [1544641]Reply | Quote | Report

Posted on Wed May 22, 2013 11:17:41
you've gone this far writing a script for chaining, why did you stop short of making it automatic?

2rg280w.jpg
Super secret reinforced spam barrier 2.0
PMV

ID: 1577993
Level: 57
Posts: 367
Score: 199
JFKPMV [1577993]Reply | Quote | Report

Posted on Wed May 22, 2013 15:36:53
By Izzy [1544641]
you've gone this far writing a script for chaining, why did you stop short of making it automatic?


Because automatic chain bots are illegal, a few of them have already been fedded.



Last Edited: Wed May 22, 2013 15:37:21
Super secret reinforced spam barrier 2.0
HLH

ID: 1378809
Level: 70
Posts: 1491
Score: 391
JFKHLH [1378809]Reply | Quote | Report

Posted on Wed May 22, 2013 15:56:40
We use this in both the JFK and JFK 2.0 faction channels. It's a great bot, I highly recommend it.



Super secret reinforced spam barrier 2.0
Fumph

ID: 1672340
Level: 32
Posts: 293
Score: 131
Fumph [1672340]Reply | Quote | Report

Posted on Wed May 22, 2013 23:20:11
I hope you're okay with users using this as a learning resource!

Super secret reinforced spam barrier 2.0
PMV

ID: 1577993
Level: 57
Posts: 367
Score: 199
JFKPMV [1577993]Reply | Quote | Report

Posted on Thu May 23, 2013 07:22:28
By Fumph [1672340]
I hope you're okay with users using this as a learning resource!


Perfectly fine with it, feel free to shout at me if you aren't sure about something

Super secret reinforced spam barrier 2.0
VeD

ID: 1635794
Level: 44
Posts: 215
Score: -54
TuSVeD [1635794]Reply | Quote | Report

Posted on Sun May 26, 2013 10:19:57
To view the admin panel, right click on the channel window and go to the control panel option.

Hmm where is that exactly mate

6yytxi.jpg
Super secret reinforced spam barrier 2.0
PMV

ID: 1577993
Level: 57
Posts: 367
Score: 199
JFKPMV [1577993]Reply | Quote | Report

Posted on Sun May 26, 2013 19:08:17
By VeD_Buster [1635794]
To view the admin panel, right click on the channel window and go to the control panel option.

Hmm where is that exactly mate


where you see the text said in the channel. Should be the last option "Asshole v4.8 Config" if you've loaded the script right.

Super secret reinforced spam barrier 2.0
Se7eN

ID: 10000
Level: 25
Posts: 216
Score: 74
NghySe7eN [10000]Reply | Quote | Report

Posted on Mon Jun 03, 2013 23:38:16
Bumped and Rated. Phenomenal bot. Awesome guy for letting that kind of work out for free. Must have countless hours into it.

i6jvgo.png
Super secret reinforced spam barrier 2.0
PMV

ID: 1577993
Level: 57
Posts: 367
Score: 199
JFKPMV [1577993]Reply | Quote | Report

Posted on Sun Jun 09, 2013 07:29:31
By Se7eN [10000]
Bumped and Rated. Phenomenal bot. Awesome guy for letting that kind of work out for free. Must have countless hours into it.


Thanks, and yes, it took quite a while working on it on and off. I started it around September iirc.

Glad to see it's being used

Super secret reinforced spam barrier 2.0
Gwapo

ID: 917873
Level: 77
Posts: 1686
Score: 854
eVGwapo [917873]Reply | Quote | Report

Posted on Fri Jul 19, 2013 04:13:43
Nice scripting Bro! I appreciate your help! And Karalynn too.

f3e1c271-5db0-4eb0-8954-ec5e20991f64_zps
up up down down left right left right B A start
Super secret reinforced spam barrier 2.0
HenkiePuk

ID: 1043621
Level: 71
Posts: 2935
Score: 1779
[A]HenkiePuk [1043621]Reply | Quote | Report

Posted on Mon Jul 22, 2013 15:57:03
Great help! Thanks for this

Rated +

freddy.png
Super secret reinforced spam barrier 2.0
FIN_Dude

ID: 527880
Level: 41
Posts: 700
Score: 14
RVGFIN_Dude [527880]Reply | Quote | Report

Posted on Wed Jul 31, 2013 21:45:35
Bumped and rate. Thanks for all the time you spent for this PMV. This thing is awesome

ACFIN_zps51876230.png
Super secret reinforced spam barrier 2.0
Baltar69

ID: 1556410
Level: 49
Posts: 857
Score: 212
USBaltar69 [1556410]Reply | Quote | Report

Posted on Thu Aug 01, 2013 17:02:45
Good bot script and allows bot to have many functions instead of having to find various scripts all over the net for torn bot.

Only comment I have on this is ...
Some of the bot script replies contain a dark green highlighted background when I use the mibbit.com chat client. The darker text from the bot ontop of the highlighted green text cannot be read unless you highlight it..

as example.. areas in purple have background color changed to dark green in mibbit.com

Baltar !chain on
C3PO Starting chain 3 with 5,468 starting respect...
C3PO Bonus faction has been set to: Reign of Confusion! Type !bonus FactionName to change.
C3PO You have 5 minutes and 30 seconds after the SECOND hit to keep the chain running!

Is there a way to change the color scheme in your bot so it does not change any of the background text colors in an IRC chat client ??

Thanks
Baltar

Super secret reinforced spam barrier 2.0
HairyVertigo

ID: 915056
Level: 45
Posts: 2276
Score: 1364
MnCHairyVertigo [915056]Reply | Quote | Report

Posted on Tue Aug 06, 2013 00:22:33
lol, I'm just a retard, forget this

Last Edited: Tue Aug 06, 2013 02:48:59
72rsde.jpg
Super secret reinforced spam barrier 2.0
PMV

ID: 1577993
Level: 57
Posts: 367
Score: 199
JFKPMV [1577993]Reply | Quote | Report

Posted on Sun Aug 11, 2013 06:46:57
Thanks again everyone whos been enjoying the bot!

Have had a lot of things come up lately, but when I can, I've been working on and off on a major update with a ton of new stuff added.

One note: The language tab is going poof due to it being too much work then I originally planned to keep working, and everyone I talk to doesn't use it anyways. All responses will be coded in the main script instead.

A few features of the next version:

- Bot will be able to switch color schemes or go plain-text if that's what you prefer. Style your bot how you like!

- The ability to type !info PMV and a short summary of the player's profile will be posted.

- The ability to see a tally of revivers, something that really should have been in day 1.

- Possibly some kind of built in !help system, so a site isn't needed for commands.

- Bunch of new random commands and suggestions from people added throughout. Will post more on release

- The mibbit color chat bug finally fixed! I honestly had no idea this was happening for a while ;-

- Much faster wartallys and many minor bugs fixed all over.



By Baltar69 [1556410]
Some of the bot script replies contain a dark green highlighted background when I use the mibbit.com chat client. The darker text from the bot ontop of the highlighted green text cannot be read unless you highlight it..

Is there a way to change the color scheme in your bot so it does not change any of the background text colors in an IRC chat client ??


Missed this, sorry about that.

It's a known bug with this major version (4.0 to 4.8), it's finally fixed in the next 5.0 update for good. Yes, it's fixable with the current version but requires a LOT of work and not worth it with how close the new update is to testing/release.

Last Edited: Sun Aug 11, 2013 06:49:19
Super secret reinforced spam barrier 2.0
HavokGDI

ID: 133687
Level: 65
Posts: 1786
Score: 1069
~BS~HavokGDI [133687]Reply | Quote | Report

Posted on Tue Aug 13, 2013 10:39:40
We started with 25,401 respect and ended with 25,623, so our change was 222 respect! We averaged -0.38 respect per hit.


Not sure what happened here.

Christopherslogo.jpg
Super secret reinforced spam barrier 2.0
PMV

ID: 1577993
Level: 57
Posts: 367
Score: 199
JFKPMV [1577993]Reply | Quote | Report

Posted on Wed Aug 14, 2013 20:02:25
By HavokGDI [133687]
We started with 25,401 respect and ended with 25,623, so our change was 222 respect! We averaged -0.38 respect per hit.


Not sure what happened here.


It subtracts bonus respect from a chain currently (260 bonus for a 100 chain) but Ill probably just remove that. I meant to try to get a more realistic respect per hit counter without bonuses skewing the results, but too many external factors mess with it to be too accurate anyways.

Super secret reinforced spam barrier 2.0
HenkiePuk

ID: 1043621
Level: 71
Posts: 2935
Score: 1779
[A]HenkiePuk [1043621]Reply | Quote | Report

Posted on Thu Aug 15, 2013 08:26:20
Any chance of adding a retal script in the next update(s)?

freddy.png
Super secret reinforced spam barrier 2.0
GrantAFC

ID: 1481902
Level: 60
Posts: 2333
Score: 671
39XGrantAFC [1481902]Reply | Quote | Report

Posted on Sat Aug 17, 2013 19:04:14
Is there any chance of adding a bust count feature such as the stat tracker ? Let us know how many busts we have done ?

Also a command such as !travel Mexico which would provide a link to fly to mexico. , I know this could cause problems due to Airstrip and WLT Block. Just a suggestion


Thanks

Last Edited: Tue Aug 20, 2013 11:53:13
Super secret reinforced spam barrier 2.0
PMV

ID: 1577993
Level: 57
Posts: 367
Score: 199
JFKPMV [1577993]Reply | Quote | Report

Posted on Fri Aug 23, 2013 09:48:58
Taking a bit longer then I expected to get the update out. Lot of things have cropped up lately ;-



By HenkiePuk [1043621]
Any chance of adding a retal script in the next update(s)?


Meh. I was hoping to avoid this, but, will probably never happen in the public-release script for a few reasons. Sorry ;-



By GrantAFC [1481902]
Is there any chance of adding a bust count feature such as the stat tracker ? Let us know how many busts we have done ?

Also a command such as !travel Mexico which would provide a link to fly to mexico. , I know this could cause problems due to Airstrip and WLT Block. Just a suggestion


Thanks


added the bust counter to my todo list

the travel command you suggested was already in the list, but yea Ill see what I can do. I might have a few ideas for workarounds with airstrip/wlt anyways.

Last Edited: Fri Aug 23, 2013 09:50:44
Super secret reinforced spam barrier 2.0
HenkiePuk

ID: 1043621
Level: 71
Posts: 2935
Score: 1779
[A]HenkiePuk [1043621]Reply | Quote | Report

Posted on Fri Aug 23, 2013 11:09:35
By PMV [1577993]
Taking a bit longer then I expected to get the update out. Lot of things have cropped up lately ;-



By HenkiePuk [1043621]
Any chance of adding a retal script in the next update(s)?


Meh. I was hoping to avoid this, but, will probably never happen in the public-release script for a few reasons. Sorry ;-


No biggie, was just wondering

freddy.png
Super secret reinforced spam barrier 2.0
Aurum

ID: 1544641
Level: 58
Posts: 2076
Score: 1744
THAurum [1544641]Reply | Quote | Report

Posted on Tue Aug 27, 2013 00:23:43
finally had a chance to look through the script

a huge number of pointless lines in the script

just an example here

var %name = $gettok($read(%filename,%ptr),1,9)
var %id = $gettok($read(%filename,%ptr),2,9)
var %lvl = $gettok($read(%filename,%ptr),3,9)
var %fact = $gettok($read(%filename,%ptr),4,9)
var %spd = $gettok($read(%filename,%ptr),5,9)


can be shortened to

var %name = $gettok($read(%filename,%ptr),1,9), %id = $gettok($read(%filename,%ptr),2,9), %lvl = $gettok($read(%filename,%ptr),3,9), %fact = $gettok($read(%filename,%ptr),4,9), %spd = $gettok($read(%filename,%ptr),5,9)



also i can't help this....

pastebin.com/vhpNCzc2

you spend 30 lines doing something that $replace could do in 1


also, hash tables are a stupid way of storing data... ini files read a lot quicker.

good effort though

Last Edited: Tue Aug 27, 2013 00:30:41
2rg280w.jpg
Super secret reinforced spam barrier 2.0
PMV

ID: 1577993
Level: 57
Posts: 367
Score: 199
JFKPMV [1577993]Reply | Quote | Report

Posted on Tue Aug 27, 2013 22:22:42
By Izzy [1544641]
finally had a chance to look through the script

a huge number of pointless lines in the script

just an example here

var %name = $gettok($read(%filename,%ptr),1,9)
var %id = $gettok($read(%filename,%ptr),2,9)
var %lvl = $gettok($read(%filename,%ptr),3,9)
var %fact = $gettok($read(%filename,%ptr),4,9)
var %spd = $gettok($read(%filename,%ptr),5,9)


can be shortened to

var %name = $gettok($read(%filename,%ptr),1,9), %id = $gettok($read(%filename,%ptr),2,9), %lvl = $gettok($read(%filename,%ptr),3,9), %fact = $gettok($read(%filename,%ptr),4,9), %spd = $gettok($read(%filename,%ptr),5,9)



also i can't help this....

pastebin.com/vhpNCzc2

you spend 30 lines doing something that $replace could do in 1


also, hash tables are a stupid way of storing data... ini files read a lot quicker.

good effort though


Cool, thanks for the tip on shortening variable declarations. Didn't know that.

I know some of the lines are expanded/inefficient because I wanted them readable for working on later, some of them are older code that I haven't gone over yet (like crimes storage) or just because I'm self-taught and don't know all of the little quirks mirc script has.

That conversion script isn't the best example of efficiency, I agree, but it does the one time job.

Is there a real world difference between the read speed of ini files vs hash tables that applies to this bot? The language tab is being dropped, but my idea with them was to have it all stored within memory so it doesn't have to hit up the hard-drive for every time it needed to call a string. http://www.zigwap.com/mirc/hash_table was where I got the idea from.

Super secret reinforced spam barrier 2.0
Aurum

ID: 1544641
Level: 58
Posts: 2076
Score: 1744
THAurum [1544641]Reply | Quote | Report

Posted on Tue Aug 27, 2013 22:47:01
By PMV [1577993]
By Izzy [1544641]
finally had a chance to look through the script

a huge number of pointless lines in the script

just an example here

var %name = $gettok($read(%filename,%ptr),1,9)
var %id = $gettok($read(%filename,%ptr),2,9)
var %lvl = $gettok($read(%filename,%ptr),3,9)
var %fact = $gettok($read(%filename,%ptr),4,9)
var %spd = $gettok($read(%filename,%ptr),5,9)


can be shortened to

var %name = $gettok($read(%filename,%ptr),1,9), %id = $gettok($read(%filename,%ptr),2,9), %lvl = $gettok($read(%filename,%ptr),3,9), %fact = $gettok($read(%filename,%ptr),4,9), %spd = $gettok($read(%filename,%ptr),5,9)



also i can't help this....

pastebin.com/vhpNCzc2

you spend 30 lines doing something that $replace could do in 1


also, hash tables are a stupid way of storing data... ini files read a lot quicker.

good effort though


Cool, thanks for the tip on shortening variable declarations. Didn't know that.

I know some of the lines are expanded/inefficient because I wanted them readable for working on later, some of them are older code that I haven't gone over yet (like crimes storage) or just because I'm self-taught and don't know all of the little quirks mirc script has.

That conversion script isn't the best example of efficiency, I agree, but it does the one time job.

Is there a real world difference between the read speed of ini files vs hash tables that applies to this bot? The language tab is being dropped, but my idea with them was to have it all stored within memory so it doesn't have to hit up the hard-drive for every time it needed to call a string. http://www.zigwap.com/mirc/hash_table was where I got the idea from.


I can't remember where I read it, but i did read inis are the quickest at calling data... Not sure on the noticeable difference

Plus you can easily find the ini files and edit them manually

And they're an amazingly useful invention

2rg280w.jpg
Forum Main>>IRC General>> Universal TC Assistant (formerly Asshole)
First  << 1  2  3 >>  Last