BeBot - An Anarchy Online and Age Of Conan chat automaton
Archive => Anarchy Online Archive => 0.2.x Custom/Unofficial Modules => Topic started by: Malosar on April 20, 2006, 03:04:30 am
-
Had an IGN version so wanted it on my bebot raidbot as well. Don't blame me for badly written or inefficient code, im a tech, not a dev...
<?
// Bebot Module to identify the leadbot and type drops
//
// Written by Malosar
//
// Last update 042106
$general = new general($bot);
$commands["pgmsg"]["gen"] = &$general;
class general
{
var $bot;
function general (&$bot)
{
$this -> bot = &$bot;
}
function pgmsg ($name, $msg) {
$loot = array();
if (substr_count($msg, "Ankari") == 1) {
$loot[1] = "Arithmetic Lead Viralbots (Nanoskill / Tradeskill)";
$loot[2] = "Type 1 weapon upgrade (Fling Shot)";
$loot[3] = "Type 2 weapon upgrade (Aimed Shot)";
}
elseif (substr_count($msg, "Ilari") == 1) {
$loot[1] = "Spiritual Lead Viralbots (Nanocost / Nanopool / Max Nano)";
$loot[2] = "Type 992 weapon upgrade (Dimach, Fast Attack, Sneak Attack,
Parry and Riposte)";
$loot[3] = "Type 880 weapon upgrade (Dimach, Fast Attack, Parry and
Riposte)";
}
elseif (substr_count($msg, "Rimah") == 1) {
$loot[1] = "Observant Lead Viralbots (Init / Evades)";
$loot[2] = "Type 112 weapon upgrade (Brawl, Dimach and Fast Attack)";
$loot[3] = "Type 240 weapon upgrade (Brawl, Dimach, Fast Attack and Sneak
Attack)";
}
elseif (substr_count($msg, "Jaax") == 1) {
$loot[1] = "Strong Lead Viralbots (Melee / Spec Melee / Add All Def / Add
Damage)";
$loot[2] = "Type 3 weapon upgrade (Fling Shot and Aimed Shot)";
$loot[3] = "Type 4 weapon upgrade (Burst) ";
}
elseif (substr_count($msg, "Xoch") == 1) {
$loot[1] = "Enduring Lead Viralbots (Max Health / Body Dev)";
$loot[2] = "Type 5 weapon upgrade (Fling Shot and Burst)";
$loot[3] = "Type 12 weapon upgrade (Burst and Full Auto)";
}
elseif (substr_count($msg, "Cha") == 1) {
$loot[1] = "Supple Lead Viralbots (Ranged / Spec Ranged / Add All Off)";
$loot[2] = "Type 13 weapon upgrade (Burst, Fling Shot and Full Auto)";
$loot[3] = "Type 76 weapon upgrade (Brawl and Fast Attack)";
}
else {
$loot[1] = "Unknown";
}
foreach ($loot as $phats) {
$this -> bot -> send_pgroup($phats);
}
}
}
?>
-
Since when Cha dropping enduring?
-
Malosar used the IGN counterpart to make this module from here (http://forums.ign-central.de/thread.php?threadid=129&sid=6516e9047880ab2e73c6fc858056f514), towards the end of the thread the plugin was adjusted with that information.
-
It's also stated in the stickied thread on FCs forums here. (http://forums.anarchy-online.com/showthread.php?t=340230) If it's wrong is there some source where the drops are confirmed compared to these lists?
-
I made this table (which is in a helpfile for my use) from sites like AO Tradeskills
(http://www.aotradeskills.streamlinenettrial.co.uk/tradeskills_082.htm) and a couple of in-game observations
General Lead Viralbot and Upgrades
Ankari'Khaz
* Arithmetic Lead Viralbots
* Type 1 weapon upgrade
* Type 2 weapon upgrade
Xoch'Khaz
* Enduring Lead Viralbots
* Type 5 weapon upgrade
* Type 12 weapon upgrade
Rimah'Khaz
* Observant Lead Viralbots
* Type 112 weapon upgrade
* Type 240 weapon upgrade
Ilari'Khaz
* Spiritual Lead Viralbots
* Type 880 weapon upgrade
* Type 992 weapon upgrade
Jaax'Khaz
* Strong Lead Viralbots
* Type 3 weapon upgrade
* Type 4 weapon upgrade
Cha'Khaz
* Supple Lead Viralbots
* Type 12 weapon upgrade
* Type 76 weapon upgrade
-
It looks for me that Cha must drop 13, not 12.
-
Cleaned up the code using array and foreach to store and send the data instead of doing it over and over for each if statement. Removed Enduring from Cha.
-
It looks for me that Cha must drop 13, not 12.
Yeah, should be 13. Looks like I mistyped it.
-
Tidied up a little, will polish up more over the week if I get time.
- works in tell, gc, pgroup now
- shows valid boss names if you enter blank or wrong name.
- blobs the result.
http://www.jjones.co.uk/files/aiboss.php
-jj-
-
Updated:-
- added clicky referenced to !type for each clump
- added clicky referenced to !lead for each bot
- added items icons
http://www.jjones.co.uk/files/aiboss.php
requirements:
Wolfbiter's excellent clump and alien armour modules:
http://bebot.link/index.php/topic,298.0.html
http://bebot.link/index.php/topic,414.0.html
-jj-
-
Very nice mods, thankyou! :)
-
- small cosmetic fix (hello Paja!)
(above link applies).
-jj-
-
Does anyone have a copy of this file, aiboss.php?
The link does not work.
Or perhaps this will be a part of 0.3.x ?
-
It works now. No idea on 0.3.x, that's up to Khalem :-)
-jj-
-
I've been busy as of late so i simply haven't been able to look at and test the community contributions.
I'm hoping to lure JJ into doing some more active work with BeBot though as he is adding a lot of seemingly minor, but very nice changes to various parts of the bot ;)
-
With some simple rules on what is expected for 3.x module formats, function reference, db access etc the original module developers could re-write their creations for you. I'd be happy to do it for the few i've contributed.
You could also state what community modules you would like to include in a base 3.x bot and ask the contributer if they want to update it, if not ask the community if anyone would like the task of updating a specific module.
-
The main change is the added support for a table prefix. The following quote should say all that's needed:
Table prefix support has now been added to SVN.
This code is currently untested and might contain bugs.
When using this revision please observe:
All custom modules must have their database queries updated in order to support prefixes. The change is simple, prefix table names with #___ (thats 3 underlines) which in turn will be parsed by the MySQL layer.
Can't remember any other serious change concerning modules yet.