BeBot - An Anarchy Online and Age Of Conan chat automaton

Development => Module Requests => Topic started by: clashbot on September 09, 2009, 07:13:44 pm

Title: nano
Post by: clashbot on September 09, 2009, 07:13:44 pm
nano seems to be stuck in a loop. I can't get it to display anything except for the default help page for it. Do we have an updated nano command for .6.x?
Title: Re: nano
Post by: Heffalomp on October 03, 2009, 09:04:09 pm
This one works for me :)

Can't remember if I did any work to it or not, but works fine on latest 6.x bot :)
Title: Re: nano
Post by: clashbot on October 03, 2009, 10:26:16 pm
works great except the itemref doesn't seem to work, but much better than the broken one before...hehe....
Title: Re: nano
Post by: Heffalomp on October 12, 2009, 01:05:15 am
it doesn't? hmm... must be that I have uploaded the nanos sql thingy to my db that solves that then, did I forget to include it? if so just use this one
Title: Re: nano
Post by: plugz on March 22, 2010, 01:20:36 am
nice mod, reminds me of the old nano module on budabot
any chance anyone has updated the DB to include the apf and quest nanos as well?

also, all queries come back with double results when called from orgchat....
did this: !nano gift of
Results 6 when its actually only 3

Title: Re: nano
Post by: Wolfbiter on March 22, 2010, 02:50:13 pm
I might be tempted to update this for newer bebot (my local db of nanos has quest and apf nanos), but I need someone that runs the latest bebot that can act as my tester then.

If anyone is interested, send a tell to Sinslayer (RK1), it's bot that'll poke any alt I happens to be on.
Title: Re: nano
Post by: clashbot on March 22, 2010, 02:51:59 pm
test subject found
I run 13 bots currently on ao so I'll definitely be able to test it
Title: Re: nano
Post by: Wolfbiter on March 22, 2010, 07:35:56 pm
Script has been updated for latest (afaik) bebot.
APF nanos are not clickable because they don't have their own crystal.
Might be possible to get the right id to set the `crystal` field to to make it work, but I'll leave it up to someone else to find it.

I'm not giving support for this script, if there's problems post in here and hope someone that can fix it reads it.
Title: Re: nano
Post by: Shelly on April 06, 2010, 03:45:32 am
I noticed one small bug ... Meta Physicist & Nano Technician were not finding the right nanos... So, I added the global declaration for $proflist and changed meta_physist to meta-physist... and nano_technician to nano-technician... works great now, though only finds a max 100 nanos per search...
Snippit of corrections:
Code: [Select]
        class Nanos extends BaseActiveModule {
                var $profs;
                var $loc;
                var $proflist;

                function __construct (&$bot) {
                        //Initialize the base module
                        parent::__construct(&$bot, get_class($this));

                        /*
                        Regoster commands with the bot.
                        Possible values for $channel:
                        tell (incomeing tell)
                        pgmsg (message in privategroup)
                        gc (message in guildchat)

                        $command should be a string with the command the module should react to
                        */
                        $this -> register_command('all', 'nano', 'GUEST');

                        $this -> bot -> core("settings") -> create('Nano', 'icon', false, 'Displaying of nano crystal icon.', 'On;Off');

                        $this -> help['description'] = 'Searches for locations of nanos.';
                        $this -> help['command']['nano']='Shows help.';
                        $this -> help['command']['nano -search options-']="# or #-# for ql/ql ranges\n          profession\nlocation (store, mission, dyna, unique, nascence, etc)\nexact search string using quotes ie. \"guardian of might\"";
                        $this -> help['notes'] = '##yellow##You can use as many of each option as you like in every search##end##';

                        $this->proflist = Array("adventurer","agent","bureaucrat","doctor","enforcer",
                                "engineer","fixer","general","keeper","martial_artist","meta-physicist",
                                "nano-technician","shade","soldier","trader");

Shelly
SimplePortal 2.3.7 © 2008-2024, SimplePortal