L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 22, 2008, 02:03:36 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.2.x Custom/Unofficial Modules > Topic: General Drop Module
Pages: [1] 2   Go Down
« previous next »
Print
Author Topic: General Drop Module  (Read 1864 times)
0 Members and 1 Guest are viewing this topic.
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
General Drop Module
« on: April 19, 2006, 08:04:30 PM »

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...

Code:
<?

// 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);
}
}
}
?>
« Last Edit: April 21, 2006, 07:11:28 PM by Malosar » Logged

Eternalist
General of The Syndicate
kuznechik
BeBot Contributor
Rookie
*******
Offline Offline

Gender: Male
Posts: 60



Re: General Drop Module
« Reply #1 on: April 20, 2006, 01:34:03 AM »

Since when Cha dropping enduring?
Logged

Kuznechik, proud bot admin of Disciples of Omni-Tek, Rimor.
Jarras
Freshman
*
Offline Offline

Posts: 12



Re: General Drop Module
« Reply #2 on: April 20, 2006, 06:36:37 AM »

Malosar used the IGN counterpart to make this module from here, towards the end of the thread the plugin was adjusted with that information.
Logged
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: General Drop Module
« Reply #3 on: April 20, 2006, 08:36:54 AM »

It's also stated in the stickied thread on FCs forums here. If it's wrong is there some source where the drops are confirmed compared to these lists?
Logged

Eternalist
General of The Syndicate
Ainen
Rookie
**
Offline Offline

Posts: 22



Re: General Drop Module
« Reply #4 on: April 20, 2006, 04:20:14 PM »

I made this table (which is in a helpfile for my use) from sites like AO Tradeskills
and a couple of in-game observations
Code:
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

Logged

BeBot 0.3.4 svn 91 // PHP 4.3.9 // MySQL 4.1.12
kuznechik
BeBot Contributor
Rookie
*******
Offline Offline

Gender: Male
Posts: 60



Re: General Drop Module
« Reply #5 on: April 21, 2006, 04:48:07 AM »

It looks for me that Cha must drop 13, not 12.
Logged

Kuznechik, proud bot admin of Disciples of Omni-Tek, Rimor.
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: General Drop Module
« Reply #6 on: April 21, 2006, 10:45:39 AM »

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.
Logged

Eternalist
General of The Syndicate
Ainen
Rookie
**
Offline Offline

Posts: 22



Re: General Drop Module
« Reply #7 on: April 23, 2006, 11:37:44 AM »

Quote from: kuznechik on April 21, 2006, 04:48:07 AM
It looks for me that Cha must drop 13, not 12.
Yeah, should be 13. Looks like I mistyped it.
Logged

BeBot 0.3.4 svn 91 // PHP 4.3.9 // MySQL 4.1.12
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: General Drop Module
« Reply #8 on: October 09, 2006, 05:52:01 PM »

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-
Logged
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: General Drop Module
« Reply #9 on: October 10, 2006, 01:50:14 AM »

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.shadow-realm.org/index.php/topic,298.0.html
http://bebot.shadow-realm.org/index.php/topic,414.0.html

-jj-
Logged
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: General Drop Module
« Reply #10 on: October 10, 2006, 08:11:58 AM »

Very nice mods, thankyou! Smiley
Logged

Eternalist
General of The Syndicate
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: General Drop Module
« Reply #11 on: October 12, 2006, 06:08:07 PM »

- small cosmetic fix (hello Paja!)

(above link applies).

-jj-
Logged
nebhyper
Rookie
**
Offline Offline

Gender: Male
Posts: 62


Re: General Drop Module
« Reply #12 on: November 28, 2006, 11:33:51 AM »

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 ?
Logged

Siocuffin (Squad Commander of United Notum Federation)
alts: Nebhyper, Nebalmighty.
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: General Drop Module
« Reply #13 on: November 30, 2006, 07:24:57 AM »

It works now.  No idea on 0.3.x, that's up to Khalem :-)

-jj-
Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: General Drop Module
« Reply #14 on: November 30, 2006, 03:11:24 PM »

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 Wink

Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Pages: [1] 2   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.2.x Custom/Unofficial Modules > Topic: General Drop Module
« previous next »
 
Jump to:  

Recent
Change text in remember "...
by gerborg
[November 21, 2008, 05:14:57 PM]

Log playtime from buddys ...
by Temar
[November 20, 2008, 10:33:57 AM]

Vote Core module and Simp...
by Temar
[November 19, 2008, 09:26:52 AM]

Restrict access for one m...
by Organizer
[November 19, 2008, 03:21:19 AM]

Custom / Revised Modules ...
by Elesar1
[November 17, 2008, 03:51:46 PM]

TWC
by Temar
[November 16, 2008, 11:39:12 AM]

Are there any FUN modules...
by Elesar1
[November 15, 2008, 07:39:15 PM]

Call to a member function...
by exxie
[November 15, 2008, 09:29:31 AM]

Ported Modules
by Alreadythere
[November 14, 2008, 06:10:07 PM]

cURL and other non-defaul...
by Temar
[November 14, 2008, 04:11:44 PM]
Stats
Members
Total Members: 1235
Latest: DDDepressionnn
Stats
Total Posts: 11037
Total Topics: 1496
Online Today: 18
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 0
Guests: 24
Total: 24

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.503 seconds with 26 queries. (Pretty URLs adds 0.035s, 4q)
Loading...