BeBot - An Anarchy Online and Age Of Conan chat automaton

Development => Module Requests => Topic started by: kelmino on July 10, 2008, 02:00:27 pm

Title: [AoC] !officer plugin
Post by: kelmino on July 10, 2008, 02:00:27 pm
I'd like to see a plugin where if a member types !officer it will show a list of what officer is online including alts, and possibly a description of what type of officer they are.  for instance

!officer

bob - Recruiting officer
Jimmy - Diplomacy officer
roger (alt of johnny) - Raid leader

or something similar to that.
Title: Re: [AoC] !officer plugin
Post by: kelmino on July 26, 2008, 05:20:41 am
is this not possible? or everyone just to busy?
Title: Re: [AoC] !officer plugin
Post by: durroch on July 26, 2008, 06:25:22 am
I'll look into it.  I think it would be possible yes :).
Title: Re: [AoC] !officer plugin
Post by: jarvil on July 30, 2008, 09:59:23 am
I'd be interested in helping with this as well. If you have done some work already, PM me and I'll see if I can help. If not then I'll get started.

Regards

Jarvil
Title: Re: [AoC] !officer plugin
Post by: durroch on July 30, 2008, 12:02:46 pm
I haven't had much of a chance to work on this since it's a bit more involved when Alts come into play.  If it were just looking for the Main Characters that are in the officer group, that would pretty easy because you can just cross reference the security_members table with the whois table.  But if you have the option selected regarding the players alts having the same security settings as their main character and trying to put those into the mix as well.  Meaning if you do !officers and an officer is on his/her alt it will show them in the list as being online even though their alts name isn't in the security_members table.

Code: [Select]
SELECT w.nickname, sm.name, sm.gid FROM #___whois AS w, #___security_members AS sm WHERE w.online > '0' AND w.nickname = sm.name
That's just off the top of my head at the moment but I think it will work for the first example I was talking about.  As for the one that includes the Alts, I'm gonna have to think about it heh.
Title: Re: [AoC] !officer plugin
Post by: Keltezaa on August 19, 2009, 06:46:17 pm
hello all.. i was poking about in here and found this..
there is a easy way of doing this:
somwhere in here is a module for guild info:
it shows the information of the guild along with who is online with a click-able tell link to the members listed...

if you edit the !ginfo File to only displpay the online officers...Bingo..!
and just rename the file to officer...
i think the following is the part you are asking for.

And if my guess is correct using !officer should pop up a window displaying who is online and what his function is in the guild, also it has a tell link to send that person a tell of hello...

Quote
$txt.= "##yellow##Officers:##end##\n";

      $online = $this -> bot -> core("online") -> get_online_state('officer1');
      $txt.= "##GI_highlight##".$online['content']." :: <a href='chatcmd:///tell officer1 hello'>Officer 1</a> - Raid Officer##end##\n";
      $online = $this -> bot -> core("online") -> get_online_state('officer1');
      $txt.= "##GI_highlight##".$online['content']." :: <a href='chatcmd:///tell officer1 hello'>Officer 1</a> - Raid Officer##end##\n";
      $online = $this -> bot -> core("online") -> get_online_state('officer1');
      $txt.= "##GI_highlight##".$online['content']." :: <a href='chatcmd:///tell officer1 hello'>Officer 1</a> - Raid Officer##end##\n";
      $online = $this -> bot -> core("online") -> get_online_state('officer1');
      $txt.= "##GI_highlight##".$online['content']." :: <a href='chatcmd:///tell officer1 hello'>Officer 1</a> - Raid Officer##end##\n";
      $online = $this -> bot -> core("online") -> get_online_state('officer1');
      $txt.= "##GI_highlight##".$online['content']." :: <a href='chatcmd:///tell officer1 hello'>Officer 1</a> - Raid Officer##end##\n";
     

hope this helps you some ;)
Title: Re: [AoC] !officer plugin
Post by: Ace on September 05, 2009, 01:29:40 pm
Hi,

I'm new to the forum. Could you please tell me if I can just use just the code above and link it another script to send a tell to bot, thus showing the officers online?

For e.g. <a href='chatcmd:///tell Bot !officer'>Click here!
Title: Re: [AoC] !officer plugin
Post by: Keltezaa on December 21, 2009, 02:38:10 pm
OK I am not much of a coding person but i think this Very basic module should do what you want it to... because i don't know much about coding you will have to manually add the officers and or Class leader names,

but it is fairly simple and as usual rename it from *.phps to *.php
I hope that this helps you and if any dev can improve or even make a in game add & remove functions please do so you are welcome to revise this...

And last but not least thanks to the creator of the Original "guild Invite / Advertise module" since i used that module to help create this one..

SimplePortal 2.3.7 © 2008-2024, SimplePortal