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: Towerbattle  (Read 2341 times)

0 Members and 1 Guest are viewing this topic.

Offline Sorekill

  • BeBot Rookie
  • *
  • Posts: 11
  • Karma: +0/-0
Towerbattle
« 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?

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Towerbattle
« Reply #1 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)).

Offline Sorekill

  • BeBot Rookie
  • *
  • Posts: 11
  • Karma: +0/-0
Re: Towerbattle
« Reply #2 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

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Towerbattle
« Reply #3 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.

 

* 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: 663
  • 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