BeBot - An Anarchy Online and Age Of Conan chat automaton
Development => Module Requests => Topic started by: Metaphblade on September 10, 2007, 01:59:39 am
-
way back when....lol, there was a module for bossloot. Was wondering if this could be converted to the 4.0-4.1 format?
-
I must say that I'm not sure what you're talking about. If it's which symbs pocket bosses drop I think we've got one. If not please head to http://bebot.link/index.php?board=3.0 and read the first post before posting. :)
-
I guess he means one like the old bossloot module, which was quite different from the symb/pb module. Was http://bebot.link/index.php/topic,388.0.html (http://bebot.link/index.php/topic,388.0.html) the link to it?
-
I guess he means one like the old bossloot module, which was quite different from the symb/pb module. Was http://bebot.link/index.php/topic,388.0.html (http://bebot.link/index.php/topic,388.0.html) the link to it?
yes, that is the exact module i was talking about. i would like to have that "ported" to 0.4.1 i would do it.....but i r teh suck at php
-
for the format in the first post of this forum.
Basically allows you to lookup a loot table either by the name of a boss (returns loot for that name) or the name of an item (returns bosses it drops from).
Commands:
!bossloot name name of boss - searches the db for that name, can be partial and will return loottables for each match.
!bossloot loot name of item - searches the db for each boss that drops that item. Will return results for each item if multiple found.
!bossloot add <itemref>/name of boss/location - Adds an item to the db. It will check whether the item already exists under the boss name so the name of the boss MUST be exact. The location will not overwrite if the boss already exists, so you can put anything for location if adding to an existing droptable. However you must include something for location.
please not that this was just a copy/paste from the origonal thread.
-
Yes I would like this converted to the latest version of BeBot as well.
-
Actually... No conversion needed, just upload the original SQL tables, add the .PHP to the modules direcotry, and restart. Works just fine for me on v0.4.1 bot. Don't forget the items database. Newest one I have is 17.0.0. anyone have a newer sql dump of the items database?
I did add the help into the .PHP file, just so it's there, I'll post it here if you want easy copy-paste fixing.
Under the bossloot function, add this:
$this -> bot -> accesscontrol -> create("all", "bossloot", "GUEST");
$this -> help['description'] = "Bossloot will allow you to search for loot, and return which boss drops it, or search for bosses, and return what loot they drop.";
$this -> help['command']['bossloot name <boss_name>'] = "Searches loot table for drops specified for that boss.";
$this -> help['command']['bossloot loot <item_name>'] = "Shows list of bosses specifed loot drops from.";
$this -> help['command']['bossloot add <itemref>/<bossname>/<location>'] = "Add to the loot table under a boss name. (Location must be entered but if boss exists will not be overwritten.)<";
$this -> help['command']['bossloot check'] = "Only works in a tell. Checks boss DB against items DB for inconsistencies.";
I have not tested the add function, or the check function, but the searches do work.
Enjoy!
- Retox (RK2)
-
Small add: you have to use !commands to set the access level for !boss, otherwise only the owner (at least in default setup) will be able to access the command.