collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: General Drop Module  (Read 9295 times)

0 Members and 1 Guest are viewing this topic.

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
General Drop Module
« 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...

Code: [Select]
<?

// 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 22, 2006, 02:11:28 am by Malosar »
Eternalist
General of The Syndicate

Offline kuznechik

  • Contributor
  • *******
  • Posts: 60
  • Karma: +0/-0
Re: General Drop Module
« Reply #1 on: April 20, 2006, 08:34:03 am »
Since when Cha dropping enduring?
Kuznechik, proud bot admin of Disciples of Omni-Tek, Rimor.

Offline Jarras

  • BeBot Rookie
  • *
  • Posts: 12
  • Karma: +0/-0
Re: General Drop Module
« Reply #2 on: April 20, 2006, 01:36:37 pm »
Malosar used the IGN counterpart to make this module from here, towards the end of the thread the plugin was adjusted with that information.

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: General Drop Module
« Reply #3 on: April 20, 2006, 03:36:54 pm »
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?
Eternalist
General of The Syndicate

Offline Ainen

  • BeBot User
  • **
  • Posts: 22
  • Karma: +0/-0
Re: General Drop Module
« Reply #4 on: April 20, 2006, 11: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: [Select]
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

BeBot 0.3.4 svn 91 // PHP 4.3.9 // MySQL 4.1.12

Offline kuznechik

  • Contributor
  • *******
  • Posts: 60
  • Karma: +0/-0
Re: General Drop Module
« Reply #5 on: April 21, 2006, 11:48:07 am »
It looks for me that Cha must drop 13, not 12.
Kuznechik, proud bot admin of Disciples of Omni-Tek, Rimor.

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: General Drop Module
« Reply #6 on: April 21, 2006, 05:45:39 pm »
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.
Eternalist
General of The Syndicate

Offline Ainen

  • BeBot User
  • **
  • Posts: 22
  • Karma: +0/-0
Re: General Drop Module
« Reply #7 on: April 23, 2006, 06:37:44 pm »
It looks for me that Cha must drop 13, not 12.
Yeah, should be 13. Looks like I mistyped it.
BeBot 0.3.4 svn 91 // PHP 4.3.9 // MySQL 4.1.12

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: General Drop Module
« Reply #8 on: October 10, 2006, 12:52:01 am »
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-

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: General Drop Module
« Reply #9 on: October 10, 2006, 08: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.link/index.php/topic,298.0.html
http://bebot.link/index.php/topic,414.0.html

-jj-

Offline Malosar

  • BeBot Expert
  • ****
  • Posts: 259
  • Karma: +0/-0
    • http://www.lowerdimension.com
Re: General Drop Module
« Reply #10 on: October 10, 2006, 03:11:58 pm »
Very nice mods, thankyou! :)
Eternalist
General of The Syndicate

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: General Drop Module
« Reply #11 on: October 13, 2006, 01:08:07 am »
- small cosmetic fix (hello Paja!)

(above link applies).

-jj-

Offline nebhyper

  • BeBot User
  • **
  • Posts: 62
  • Karma: +0/-0
Re: General Drop Module
« Reply #12 on: November 28, 2006, 05:33:51 pm »
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 ?
Siocuffin (Squad Commander of United Notum Federation)
alts: Nebhyper, Nebalmighty.

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: General Drop Module
« Reply #13 on: November 30, 2006, 01:24:57 pm »
It works now.  No idea on 0.3.x, that's up to Khalem :-)

-jj-

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: General Drop Module
« Reply #14 on: November 30, 2006, 09: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 ;)

BeBot Founder and Fixer Kingpin

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 103
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal