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: Tower reduced to xx% by xxxx  (Read 5172 times)

0 Members and 1 Guest are viewing this topic.

Offline Nogoal

  • BeBot Apprentice
  • ***
  • Posts: 77
  • Karma: +0/-0
Tower reduced to xx% by xxxx
« on: April 25, 2007, 04:41:16 pm »
We have 2 orgs and we'd like to relay the 'tower was reduced to %' through !gcr to the other org. So we don't need to log in the other org if noone's logged at this time to check if it was a mistake or a real attack.

So I was looking for that message in aochat but couldn't find it. As it's something hard to test, did someone else already tried to play with this?

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: Tower reduced to xx% by xxxx
« Reply #1 on: April 26, 2007, 01:58:32 am »
Shouldn't be too hard. It's a message from ALL TOWERS if I remember correctly. I'll try to save one next time I see it and then see if I can make a regex for it. :)
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Tower reduced to xx% by xxxx
« Reply #2 on: April 26, 2007, 09:08:16 am »
Some file (one of the .mda ones I think) got a list with all those strings that need to be parsed. It's just a question of finding the right strings and adding them to the AOChat library, then the bot gets the human readable version.

Forgot which files though, think it should be described somewhere on aodevs.

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: Tower reduced to xx% by xxxx
« Reply #3 on: April 27, 2007, 12:17:36 am »
Added it as FS#42 in the task manager labled "Feature request". I haven't taken on the assignment as I'm currently quite busy elsewhere.

I should probably have time to get this working for 0.4. Well hopefully atleast. :)
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Tower reduced to xx% by xxxx
« Reply #4 on: May 18, 2007, 01:25:46 pm »
Messages implemented, didn't add any parsing yet though.

They got the same format as ingame, Org.Msg. channel.

Offline Nogoal

  • BeBot Apprentice
  • ***
  • Posts: 77
  • Karma: +0/-0
Re: Tower reduced to xx% by xxxx
« Reply #5 on: May 21, 2007, 12:38:54 pm »
Thank you very much for this. Modified my TowerAttack.php, only need to wait and see if it works now.
« Last Edit: May 21, 2007, 01:46:46 pm by Nogoal »

Offline tonyuh

  • BeBot User
  • **
  • Posts: 48
  • Karma: +0/-0
Re: Tower reduced to xx% by xxxx
« Reply #6 on: June 09, 2007, 07:46:10 pm »
Has this been implemented to 0.2.x? And I thought the changes are in AOChat.php not TowerAttack.php

Cheers,
Tony

Offline Ebag333

  • Contributor
  • *******
  • Posts: 134
  • Karma: +0/-0
Re: Tower reduced to xx% by xxxx
« Reply #7 on: June 10, 2007, 01:15:12 am »
I believe they'd need to be in both, unless AOChat was already catching them and nothing happened with it.

Offline tonyuh

  • BeBot User
  • **
  • Posts: 48
  • Karma: +0/-0
Re: Tower reduced to xx% by xxxx
« Reply #8 on: June 10, 2007, 01:28:01 pm »
Oh yeah, I wasn't clear about it, it will have to be in both in order to display the message, but I can modify TowerAttack.php my self, I just need the message implemented in AOChat.php because right now its parsing "0: Unknown extended message" or something similar. Have anyone done it for 0.2.x?

Cheers,
Tony

 

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