BeBot - An Anarchy Online and Age Of Conan chat automaton

General => Feedback and Suggestions => Topic started by: Sorekill on May 01, 2007, 04:24:00 am

Title: Towerbattle
Post by: Sorekill on May 01, 2007, 04:24:00 am
I have done a few searches and couldn't find exactly what I was looking for. Anyways is there a command or option or something  I could change in the code to make the Tower Battle alerts to be minimized into a line with the option of the person to click on it for a detail information (aka what SC's and up get from the server?
Title: Re: Towerbattle
Post by: Alreadythere on May 01, 2007, 07:25:16 am
Yes, you'll have to edit the output created in   function gmsg($name, $group, $msg). It's the part following if (!empty($off_guild)).
Title: Re: Towerbattle
Post by: Sorekill on May 02, 2007, 12:18:49 am
OK.. Since I am just learning about php and whatnot, does anyone have theirs edited and could post there file here or send me a msg with how to do it...Sorry I messed with this all day but ended up with original file lol ... Guess I have more to learn hehe
Title: Re: Towerbattle
Post by: Alreadythere on May 02, 2007, 10:08:50 am
Try replacing
Code: [Select]
if (!empty($off_guild))
$msg = "<font color=#ffff00>" . $off_guild . "</font> <font color=#dddddd>(" . $off_side . ")</font> has attacked <font color=#ffff00>" .
$def_guild . "</font> <font color=#dddddd>(" . $def_side . ")</font> in " . $zone . " at " . $x_coords . "x" . $y_coords. ". Attacker: <font color=#ffff00>" .
$off_player . "</font> <font color=#dddddd>(LvL " . $player["level"] . " " . $player["profession"] . ")</font>";
else
$msg = "<font color=#ffff00>" . $off_player . "</font> <font color=#dddddd>(LvL " . $player["level"] . " " . $player["profession"] . ")</font> just attacked " .
$def_guild . "</font> <font color=#dddddd>(" . $def_side . ")</font> in " . $zone . " at " . $x_coords . "x" . $y_coords. ".";
with
Code: [Select]
if (!empty($off_guild))
$msg = "<font color=#ffff00>" . $off_guild . "</font> <font color=#dddddd>(" . $off_side . ")</font> has attacked <font color=#ffff00>" .
$def_guild . "</font> <font color=#dddddd>(" . $def_side . ")</font>. " . $this -> bot -> make_blob("More info", "The fight is in " . $zone . " at " . $x_coords . "x" . $y_coords. ".\nAttacker: <font color=#ffff00>" .
$off_player . "</font> <font color=#dddddd>(LvL " . $player["level"] . " " . $player["profession"] . ")</font>");
else
$msg = "<font color=#ffff00>" . $off_player . "</font> just attacked " . $def_guild . "</font> <font color=#dddddd>(" . $def_side . ")</font>" .
$this -> bot -> make_blob("More info", "The fight is in " . $zone . " at " . $x_coords . "x" . $y_coords. ".\nAttacker: <font color=#ffff00>" .
$off_player . "</font> <font color=#dddddd>(LvL " . $player["level"] . " " . $player["profession"] . ")</font>")";

Can't guarantee no errors, just did that quick on the fly. If it works it should shorten the output a bit.
SimplePortal 2.3.7 © 2008-2024, SimplePortal