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

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

Author Topic: [AoC] !officer plugin  (Read 7369 times)

0 Members and 1 Guest are viewing this topic.

Offline kelmino

  • BeBot User
  • **
  • Posts: 50
  • Karma: +0/-0
[AoC] !officer plugin
« 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.

Offline kelmino

  • BeBot User
  • **
  • Posts: 50
  • Karma: +0/-0
Re: [AoC] !officer plugin
« Reply #1 on: July 26, 2008, 05:20:41 am »
is this not possible? or everyone just to busy?

Offline durroch

  • BeBot User
  • **
  • Posts: 43
  • Karma: +0/-0
Re: [AoC] !officer plugin
« Reply #2 on: July 26, 2008, 06:25:22 am »
I'll look into it.  I think it would be possible yes :).

Offline jarvil

  • BeBot Rookie
  • *
  • Posts: 13
  • Karma: +0/-0
Re: [AoC] !officer plugin
« Reply #3 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

Offline durroch

  • BeBot User
  • **
  • Posts: 43
  • Karma: +0/-0
Re: [AoC] !officer plugin
« Reply #4 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.

Offline Keltezaa

  • BeBot Rookie
  • *
  • Posts: 16
  • Karma: +0/-0
  • -=Blood Arcanum=-
Re: [AoC] !officer plugin
« Reply #5 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 ;)

Offline Ace

  • BeBot Rookie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: [AoC] !officer plugin
« Reply #6 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!

Offline Keltezaa

  • BeBot Rookie
  • *
  • Posts: 16
  • Karma: +0/-0
  • -=Blood Arcanum=-
Re: [AoC] !officer plugin
« Reply #7 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..


 

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


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 pm]


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


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm]

* Who's Online
  • Dot Guests: 670
  • 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