Archive > AoC 0.6.x Custom/Unofficial modules

ginfo help please

<< < (3/6) > >>

dragonjr:
i just want to make sure im doing this right
<?php
/*
* GuildInfo, by Kaeus
* This module helps people with guild recruitment.
*
*
*/
$GuildInfo = new GuildInfo($bot);

class GuildInfo extends BaseActiveModule

thats the orginal

<?php
/*
* GuildInfo2, by Kaeus
* This module helps people with guild recruitment.
*
*
*/
$GuildInfo2 = new GuildInfo2($bot);

class GuildInfo2 extends BaseActiveModule

is that what you mean by adding the 2?

Drizzurdeen:
jebb

Yite:
You'd also have to change (at the very least) the


--- Code: ---      $this -> register_command('all', 'ginfo', "ANONYMOUS");
--- End code ---

and the command handler:

--- Code: ---   function command_handler($name, $msg, $origin)
   {
      if (preg_match('/^ginfo/i', $msg, $info)) {
         $words = trim(substr($msg, strlen('ginfo')));
--- End code ---


Having said that, if you want to try out and play around with the module I'd recommend either having a second bot (for testing) running (if you make that bot part of the same guild make sure each bot knows about the existence of the other and they use different op commands (like ! and @) configurable in the conf file)
Or rename the original Ginfo.php to _Ginfo.php (modules starting with a _ are not loaded on startup) and play with your second Ginfo.php

dragonjr:
ok thanks guys for the quick reply

dillinger:
Hi all

I'm using the !ginfo as well and It's great! But I want it to make it look a "tick" sexyer... so here is my question:

The start(hyper)link für the !ginfo script is shown in AoC standard orange, wich is ugly as hell.

How can I set the code to format the link in other colours and styles?


--- Code: ---return $this -> bot -> core("tools") -> make_blob("<font color='#6E328A' face='HYBORIANSMALL'>Gildeninfo!</font>", $txt);
--- End code ---
This is my current code.

Thanx in advance!

dill

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version