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

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

Author Topic: Battlekeeps in AoC  (Read 9714 times)

0 Members and 1 Guest are viewing this topic.

Offline keirou

  • BeBot Apprentice
  • ***
  • Posts: 90
  • Karma: +0/-0
Battlekeeps in AoC
« on: March 10, 2009, 02:26:32 am »
[GROUP]   [MSG]   [Third Time Lucky] Bustydemons: if you get a tank i can bring my ToS to help with option 2 and 3
[GROUP]   [MSG]   [Third Time Lucky] <remoteformat id="113577031" category="100" key="m@@!?CE%Uu+8Kxa9-B?\" knubot="0"  ><parameter value="6;&lt;remoteformat id=&quot;3&quot; category=&quot;50100&quot; key=&quot;oQ0sL&amp;quot;D@uZi8ygL4Yty@&quot; knubot=&quot;0&quot;  &gt;&lt;/remoteformat&gt;" /></remoteformat>

This is what happens when

[10:23] [Guild] [Bustydemons]: if you get a tank i can bring my ToS to help with option 2 and 3
[10:23] [Guild] Caelnach will be vulnerable for attack in 24 hours.

happens in game.
any way it can be cleaned up in bot log? or even removed?

Offline keirou

  • BeBot Apprentice
  • ***
  • Posts: 90
  • Karma: +0/-0
Re: Battlekeeps in AoC
« Reply #1 on: March 12, 2009, 08:24:41 am »
*bump*

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Battlekeeps in AoC
« Reply #2 on: March 12, 2009, 11:06:05 am »
Not sure if it could easily be cleaned up, but filtering shouldn't be that hard. You'd have to add a check on inc_gsmg() for chat of no user starting with <remoteformat I guess.

Try adding the following after the line $args[2] = utf8_decode($args[2]); and before the directly following line if (isset($this -> commands["gmsg"][$group]) || $group == $this -> guildname || ($this -> game == "aoc" && $group == "~Guild")) in the inc_gmsg() function:
Code: [Select]
if ($args[1] == 0 && $this -> game == "aoc" && $group == "~Guild")
{
$parts = explode(" ", $args[2]);
if ($parts[0] == '<remoteformat')
return;
}
This code is untested though.

Offline keirou

  • BeBot Apprentice
  • ***
  • Posts: 90
  • Karma: +0/-0
Re: Battlekeeps in AoC
« Reply #3 on: March 13, 2009, 07:44:40 am »
without sounding like a complete noob... how?

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Battlekeeps in AoC
« Reply #4 on: March 13, 2009, 05:25:11 pm »
Make a backup of Sources/Bot.php
Open Sources/Bot.php in a text editor, notepad will do for this.
Add my code at the place mentioned above - first search for function inc_gmsg, then for the lines mentioned. Make sure you are at the right position.
After inserting the code save the file and restart the bot.

Good luck ;)

Offline keirou

  • BeBot Apprentice
  • ***
  • Posts: 90
  • Karma: +0/-0
Re: Battlekeeps in AoC
« Reply #5 on: March 13, 2009, 07:06:41 pm »
so
Code: [Select]
/*
* Incoming group message (Guildchat, towers etc)
*/
function inc_gmsg($args)
{
$found = false;

$group = $this -> core("chat") -> lookup_group($args[0]);

if (!$group)
{
$group = $this -> core("chat") -> get_gname($args[0]);
}

$args[2] = utf8_decode($args[2]);

if (isset($this -> commands["gmsg"][$group]) || $group == $this -> guildname || ($this -> game == "aoc" && $group == "~Guild"))

becomes

Code: [Select]
/*
* Incoming group message (Guildchat, towers etc)
*/
function inc_gmsg($args)
{
$found = false;

$group = $this -> core("chat") -> lookup_group($args[0]);

if (!$group)
{
$group = $this -> core("chat") -> get_gname($args[0]);
}

$args[2] = utf8_decode($args[2]);
if ($args[1] == 0 && $this -> game == "aoc" && $group == "~Guild")
{
$parts = explode(" ", $args[2]);
if ($parts[0] == '<remoteformat')
return;
}
if (isset($this -> commands["gmsg"][$group]) || $group == $this -> guildname || ($this -> game == "aoc" && $group == "~Guild"))
« Last Edit: March 13, 2009, 07:09:52 pm by keirou »

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Battlekeeps in AoC
« Reply #6 on: March 13, 2009, 07:36:38 pm »
Yes.

Offline WeZoN

  • Global Moderator
  • *****
  • Posts: 92
  • Karma: +0/-0
Re: Battlekeeps in AoC
« Reply #7 on: June 01, 2009, 06:24:17 pm »
bump!

any luck with this?

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


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


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

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