AOWiki :: AODevs Forums :: Arcanum :: AO Official Forums :: AOC US/EU Official Forums
Welcome, Guest. Please login or register.
Did you miss your activation email?
+  FC 3rd Party Dev
|-+  Anarchy Online» Budabot» Budabot misses Tower attack message
Username:
Password:
 
Pages: [1]
  Print  
Author Topic: Budabot misses Tower attack message  (Read 713 times)
veremit
Rollerrat
*

Reetness: +0/-0
Offline Offline

Posts: 30


View Profile
« on: March 24, 2010, 22:26:46 »

Hiya,

Just set up a budabot myself, but its missing one of the tower messages.
For example -
Code:
[22:09:45] [All Towers] : The omni organization Valhall Guardians just entered a state of war! Uthue attacked the clan organization Coven of Hunters's tower in Mort at location (620,395).
is not added to the Battle database.

I've tried to modify the 'tower_messages.php' script, but I think there is also an error in the Core aochat.php code too - but I can't figure out what and how to fix it.

Can someone please look into this, and post a fix?!

Cheers!
Logged
veremit
Rollerrat
*

Reetness: +0/-0
Offline Offline

Posts: 30


View Profile
« Reply #1 on: March 24, 2010, 22:46:56 »

Successfully bodged the 'aochat' using the one from BeBot *cough*

Testing ...
Logged
veremit
Rollerrat
*

Reetness: +0/-0
Offline Offline

Posts: 30


View Profile
« Reply #2 on: March 25, 2010, 00:04:22 »

Ok tested and working:

modules/TOWERS_MODULE/towers_messages.php:-

Replace line 32:
Code:
if(eregi("^(.+) \((.+), (clan|neutral|omni)\) attacked (.+) \((clan|neutral|omni)\) in (.+) at ([0-9]+), ([0-9]+).$", $message, $arr)) {
with
Code:
if (preg_match("/The (clan|neutral|omni) organization (.+) just entered a state of war! (.+) attacked the (clan|neutral|omni) organization (.+)'s tower in (.+) at location \(([0-9]+), ([0-9]+)\)/i", $message, $arr)) {

and core/aochat.php:-

Replace line 1094:
Code:
"{ATT_NAME} ({ATT_ORG}, {ATT_SIDE}) attacked {DEF_ORG} ({DEF_SIDE}) in {ZONE} at {X}, {Y}.",
with
Code:
"The {ATT_SIDE} organization {ATT_ORG} just entered a state of war! {ATT_NAME} attacked the {DEF_SIDE} organization {DEF_ORG}'s tower in {ZONE} at location ({X}, {Y}).",
Logged
Pages: [1]
  Print  

 
Jump to:  

Page created in 0.037 seconds with 17 queries.