BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => AO 0.6.x Custom/Unofficial modules => Topic started by: Shelly on October 18, 2009, 06:13:33 pm

Title: Raid Loot module
Post by: Shelly on October 18, 2009, 06:13:33 pm
New Release! 16-Aug-2011

Raidloot is a module I wrote that contains a menu system to enable easy rolling of the loot for several of the AO raids. Most of the commands are set initially as "Leader" level or better.

Raids included in this release:
Alappaa
Albtraum
APF(10,13,28,35,42)
Biodome
DustBrigade(Aune & Mikkelsen)
Dredloch
Hollow Island
Inner Sanctum
Jack 'Legchopper'
Legacy of XAN(12-man, Alien Threat, Vortexx)
Pande(all bosses & areas)
Dustbrigade Prisoners

It consists of 3 files ... all of which go in the "<bothome>/custom/modules" folder:
Raid_Loot.php
_Raid_Load.php
Loot.php

The Loot.php also has bitnykk's modifications (See Post: Modified-Loot-Plugin-(w APF/Pande) (http://bebot.link/ao-0-6-x-customunofficial-modules/modified-loot-plugin-%28w-apfpande%29/)) together with my enhancements to allow for the loot to be shown in org chat if one desires... see "/tell <yourbot> help loot" for the choices.

This module set requires an SQL database, but so does the bot... :)

Install:
1. Rename your original Loot.php to _Loot.php. This file can be found in <bothome>/modules/ao.
2. Expand the 3 files from the download zip file into your <bothome>/custom/modules folder.
3. restart your bot.

History:
It started out as a rewrite of the PANDE_LOOT module for BudaBot, but found it easier just to completely rewrite it from the ground up. (Took about 3 weeks of serious coding to get the original module set written.) I am NOT a professional php coder...

I created it originally for BeBot (0.6.5), but it should work with any 6.x version of BeBot. I have a copy of the module set running on Flatroll2 (RK2) if you are interested in seeing it in action.

MANY thanks goes to Ryph(RK2) for his assistance in gathering the data necessary to add the boss loot information for many of the included raids to the module. (The database was constructed from scratch)
AND bitnykk for the raid shortcuts.

Hope you enjoy the module as much as I do.

Updated code...
1. Supports clickable links in the loot list.
2. The Database structure was modified to allow for a version check.
3. Uses new Loot module (this reduces the confusion of which command to use for people to add to the rolled items)

Original Modules:
* Raid_Loot.phps (71.89 kB - downloaded 100 times.)
* _Raid_Load.phps (233.77 kB - downloaded 84 times.)
Title: Re: Raid Loot module
Post by: Khalem on October 19, 2009, 07:04:49 am
Looks like a great module.

Some suggestions :)

Right now the module uses a separate command for each raid. I strongly recommend gathering all these as a subcommand for another command which if called with no arguments display a list of available raids.

If you want to make it more flexible i would also recommend moving away from hard coded raid targets and moving everything into database tables instead. Ie,
objectives_rloot: Defines raid objects, pande, db, hi etc
bosses_rloot: Defines what bosses are available, each boss assigned to an objective
items_rloot: The items
drops_rloot: Link loot with bosses

One could even add an ingame and/or web interface to allow adding of objectives, bosses and items to make new raids available easily.
Title: Re: Raid Loot module
Post by: Shelly on October 21, 2009, 02:31:50 am
I LOVE suggestions :)
You made some nice ones. I really want to implement them and was even thinking the same way ... Just need the time to code them. I pre-staged the selection code (case statements) to do that.... Maybe version 1.2? (I did mention I am not a professional php coder... right?  ;D

A friend found a few minor errors in the initial code and have corrected them... Please see the original post for the latest files.
Title: Re: Raid Loot module
Post by: Heffalomp on November 01, 2009, 01:39:20 am
I'm just waiting for the loot to be clickable in roll list :)
Great module so far tho :D
Title: Re: Raid Loot module
Post by: ZoeF on December 01, 2009, 03:52:10 am
How the hell do you get this to work?

I added it in modules but i can't seem to get any command right.

Any help ?
Title: Re: Raid Loot module
Post by: Shelly on December 02, 2009, 03:06:46 am
It is set so the person that is using the module has to be of leader or higher status in the bot.

Try doing !leader before trying to run the commands. :)
Title: Re: Raid Loot module
Post by: BongTechnician on December 02, 2009, 02:21:23 pm
Hi, just wondering if these files need any finagaling before i put them in the custom folder, i've never delt with phps files before, so i am not sure if they are good as is, or if i need to do some name/php changing before i load them into my bot
Title: Re: Raid Loot module
Post by: snyder on December 02, 2009, 02:51:00 pm
change .phps to .php, simple
Title: Re: Raid Loot module
Post by: BongTechnician on December 02, 2009, 05:19:55 pm
ok, im new to this, i thought it was that simple, but didnt wanna have any issues with my bot
Title: Re: Raid Loot module
Post by: Shelly on December 13, 2009, 02:11:02 pm
I have Updated code...

Changes:
1. The Module now supports clickable links in the loot list.
It has its own loot module now. It is based on the BeBot !loot module code, but I had to modify it to get the clickable links in the loot list.
2. The Database structure was also modified to allow for a version check.

Please check the original post for the latest code.

Future enhancements planned... ability to modify the loot table and raids from in game commands... stay tuned! :)
Title: Re: Raid Loot module
Post by: Shelly on August 16, 2011, 05:05:40 am
A new update of this module will be out this month. I have it now working with !loot so it cuts down on the confusion as what command to use to add to the roll.

Shelly
Title: Re: Raid Loot module
Post by: Shelly on August 17, 2011, 04:00:05 am
New Version Released!

See the 1st post for the details!

Shelly
Title: Re: Raid Loot module
Post by: bitnykk on April 05, 2016, 07:11:25 pm
Would rock to make new update with recent game additions (eg PoH). Do you plan to do some ?
SimplePortal 2.3.7 © 2008-2024, SimplePortal