Author Topic: The !ginfo module  (Read 52730 times)

killermark91

  • Guest
The !ginfo module
« on: November 22, 2009, 19:07:01 »
Hello CRO guild, I've been sent here by someone of your guild to get a guild advert module for the guildbot. Now I am not a total noob with PHP, but this piece of coding is a bit too much for me so I'd like to get some help please. I've already been able to modify some stuff, but the stuff I haven't been able to modify, that's what I'll ask about here.

1. The Classes. How do I remove that part from the script. We don't mind what classes we invite for now.

2. I want to put some information about our guild in it, just some text, nothing too fancy. HTML based ofc.

3. From the some of the officers and from the Guild Leader the script tells their status is Unknown instead of Online or Offline. Any idea's?

That's pretty much it for now, I hope that if I have any further questions, I can come here again. :)

Thanks in advance
killermark91 (ingame Nosehair/Neushaar)

Offline Bruno

  • Webmaster, Officer, Recruiter, Bot master and excelent Conqueror
  • Administrator
  • Imba Newb
  • *****
  • Posts: 1230
  • Karma: +65535/-8
    • Prijevodi - Online
  • My main char: Snyder
Re: The !ginfo module
« Reply #1 on: November 22, 2009, 19:54:15 »
i sent you to download the script.

comment this code in module to remove class requirement.
Code: [Select]
// loop to create requirement
foreach ($this->classes as $short => $long) {
$r = $this->bot->core("settings")->get("GuildInfo", $short);// requirement for class
$txt .= "##normal##".$long.":##end## <font color='".$this->colors[ $r ]."'>[".$r."]</font>\n";
unset($short, $long, $r);
}


as for unknown, they are not on bot. you need to add them by !member add or tell them to type something in guild chat.

as for info on guild. put it in some file and point private $recruitment_file to that file
ofc you need to add alts
« Last Edit: November 22, 2009, 19:59:30 by Snyder »
Prijevodi-Online.org
Snyder - Conqueror
Konobarica - Priest Of Mitra
Unfortunate - Necromancer
Sluga - Guardian
Shupak - Tempest of Set
Demoguy - Demonologist
jQuery - BearShaman

killermark91

  • Guest
Re: The !ginfo module
« Reply #2 on: November 22, 2009, 20:11:15 »
ah thanks very much! :D Yeah sorry, couldn't remember who sent me here, but thanks Snyder. About that private $recruitment_file, what kind file should that be? A *.txt or doesn't it matter what? And what do you mean by ofc you need to add alts? :P

Offline Bruno

  • Webmaster, Officer, Recruiter, Bot master and excelent Conqueror
  • Administrator
  • Imba Newb
  • *****
  • Posts: 1230
  • Karma: +65535/-8
    • Prijevodi - Online
  • My main char: Snyder
Re: The !ginfo module
« Reply #3 on: November 22, 2009, 20:21:47 »
you type path so it looks like this:

Code: [Select]
private $recruitment_file = 'c:\bebot\recruitment.txt/html/php/whatever';
Prijevodi-Online.org
Snyder - Conqueror
Konobarica - Priest Of Mitra
Unfortunate - Necromancer
Sluga - Guardian
Shupak - Tempest of Set
Demoguy - Demonologist
jQuery - BearShaman

killermark91

  • Guest
Re: The !ginfo module
« Reply #4 on: November 22, 2009, 21:00:38 »
thanks very much Snyder

Code: [Select]
// first one is guildleader
            if (!$i) {$txt .= "##normal##Guild leader##end##\n";}
            // rest are officers
            else if ($i == 1) {$txt .= "##normal##Officers##end##\n";}

what do I need to change here to make the Color in the text window change?

thanks in advance