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: New Tower ability  (Read 4443 times)

0 Members and 1 Guest are viewing this topic.

Offline Bart

  • BeBot User
  • **
  • Posts: 39
  • Karma: +0/-0
New Tower ability
« on: December 16, 2006, 06:24:26 am »
We now get a new message when we fire an orbital attack.
[Org. Msg.] Blammo! XXXXX has launched an orbital attack!

Now atatcks fro each type are available each 15 mins. Unfortunately it doesn't say which atatck is which. It would be nice to have a message appear on the bot 15 minutes after the [Org. Msg.] Blammo! XXXXX has launched an orbital attack! Has come up.

Also would be nice to do something like !orbital and get a timestamp of when it was last fired and if it is available to fire again.

Seems this would be somehting like a city ai raid timer.


Bart

Offline nebhyper

  • BeBot User
  • **
  • Posts: 62
  • Karma: +0/-0
Re: New Tower ability
« Reply #1 on: January 21, 2007, 07:36:45 pm »
Anyone figure this out yet?  Is there a way to tell air strike from laser?

 
Siocuffin (Squad Commander of United Notum Federation)
alts: Nebhyper, Nebalmighty.

Offline Xenixa

  • Contributor
  • *******
  • Posts: 307
  • Karma: +0/-0
Re: New Tower ability
« Reply #2 on: January 22, 2007, 09:50:20 am »
I'd have to look through my bot logs. Shouldn't be too hard to come up with the right code to add to the towers module.
<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: New Tower ability
« Reply #3 on: January 22, 2007, 06:50:34 pm »
Actually, it needs an updated AOChat.php too since we are still using Auno's static scheme.
BeBot Founder and Fixer Kingpin

Offline nebhyper

  • BeBot User
  • **
  • Posts: 62
  • Karma: +0/-0
Re: New Tower ability
« Reply #4 on: January 23, 2007, 08:29:35 pm »
You are correct.  AOchat.php parses out the incoming messages.  This is called from bot.php so what i have done is coded a piece in bot.php of bot to log all inc messages, parse out the message like AOchat.php does and log that too.  Tonight I will have someone in my org plant a laser tag and I will use the HQ.  This way I can log the entire message it sends and compare it to all other known messages that AOchat.php and so nicely split apart.  Hopefully I can have something on this today!
Siocuffin (Squad Commander of United Notum Federation)
alts: Nebhyper, Nebalmighty.

Offline Xenixa

  • Contributor
  • *******
  • Posts: 307
  • Karma: +0/-0
Re: New Tower ability
« Reply #5 on: January 23, 2007, 09:46:29 pm »
Catagory: 508
MMDB Entry: 176308692 (0xa8241d4)
Message: Blammo! %s has launched an orbital attack!

EDIT: Never mind I don't need the Base85. My copy of AOChat.php is updated. :p
« Last Edit: January 23, 2007, 10:03:32 pm by Xenixa »
<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky

Offline nebhyper

  • BeBot User
  • **
  • Posts: 62
  • Karma: +0/-0
Re: New Tower ability
« Reply #6 on: January 23, 2007, 10:03:22 pm »
I was under the impression that AOchat.php was looking for a message that looked more like this:

~&!!!&r!5b/RR!!!8S!!!!#sOrbiteksGoozR!!!8S!!!!"sPurple HazesGreater Tir Countyi!!!5;i!!!>P~

removes ~& and ~

then seperates the !!!&r!5b/R out into 3 pieces with the remainded being the blob.


The message above would be:
r! = tower event

5b/R = uncertain but is a sub title to tower event

thus you break out the blob to say what happened etc etc etc.
#s = Omni
"s = Clan

I'm sure you already know this.

So I have tested this and yes that is what it is looking for as I recorded that message this morning.  However, I have not triggered a laser strike yet to see what comes across. 

I'm hoping that in 4-5 hours I can get home and test this and record the message it gives and hope they are different.  If so I will add this to AOchat.php and towerattack.php.

Am I wrong in my thinking?
Siocuffin (Squad Commander of United Notum Federation)
alts: Nebhyper, Nebalmighty.

Offline Xenixa

  • Contributor
  • *******
  • Posts: 307
  • Karma: +0/-0
Re: New Tower ability
« Reply #7 on: January 23, 2007, 10:16:48 pm »
5b/R = Cat: 506, Entry: 12753364(0x0c299d4), Message: The %s organization %s just entered a state of war! %s attacked the %s organization %s's tower in %s at location (%d,%d).

5b/R is a Base85 ref for text.mdb. AOChat.php converts the Base85 to a hexidecimal value and sets a defined string array for that message.

For Ref. see the class AOExtMsg in AOChat.php
<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky

Offline Xenixa

  • Contributor
  • *******
  • Posts: 307
  • Karma: +0/-0
Re: New Tower ability
« Reply #8 on: January 23, 2007, 11:08:58 pm »
Attached is an updated AOChat.php that see's the Orbital Strike's.
It's an updated version of the AOChat.php from http://svn.shadow-realm.org/svn/BeBot/trunk/Sources/AOChat.php

Here's a sample preg match for it that you can use in a module:
Code: [Select]
preg_match("/Blammo! (.+) has launched an orbital attack!/i", $msg, $info)
Edit: I guess it would help if I actually attached it.
« Last Edit: January 23, 2007, 11:11:04 pm by Xenixa »
<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: New Tower ability
« Reply #9 on: January 23, 2007, 11:14:46 pm »
On a side note. What we really need is to either do an xml based lookup or port Angels mdb lookup from Angelsbot and rip the static string handling out of AOChat.php.

An XML approach would mean we could keep the file small, including only the strings relevant for a bot, but might be slower than mdb lookups.
BeBot Founder and Fixer Kingpin

Offline nebhyper

  • BeBot User
  • **
  • Posts: 62
  • Karma: +0/-0
Re: New Tower ability
« Reply #10 on: January 23, 2007, 11:21:09 pm »
As I feared.

It is the same message for two different strikes.  LAzy coding on FC's part?

I mean, you have laser and you have bombs.  Why is it the same message for two attacks with two timers?

Siocuffin (Squad Commander of United Notum Federation)
alts: Nebhyper, Nebalmighty.

Offline Xenixa

  • Contributor
  • *******
  • Posts: 307
  • Karma: +0/-0
Re: New Tower ability
« Reply #11 on: January 23, 2007, 11:27:27 pm »
Are you sure it's 2 timers? I thought you could only choose laser or bombing once every 15 mins.
<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky

Offline nebhyper

  • BeBot User
  • **
  • Posts: 62
  • Karma: +0/-0
Re: New Tower ability
« Reply #12 on: January 23, 2007, 11:38:31 pm »
2 days ago we tested the timers and one SC in HQ did both attacks within 30 seconds to 1 minute of each other.  I watched in my yalm after planting the laser tagging device in our tower field.

The laser came down a few seconds after the Blamo! msg.

I said try the other.

He did and Blamo! msg came and a ship flew over and bombs dropped.


So yes.  You can do both back to back or seperated by some time (i would guess).  So, one would reason there are two timers one for each. 
Siocuffin (Squad Commander of United Notum Federation)
alts: Nebhyper, Nebalmighty.

Offline Xenixa

  • Contributor
  • *******
  • Posts: 307
  • Karma: +0/-0
Re: New Tower ability
« Reply #13 on: January 23, 2007, 11:59:18 pm »
Sounds like a bug. That would be a bit over powering. According to all the docs on AO site I have read it's only once every 15 mins.
<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky

Offline nebhyper

  • BeBot User
  • **
  • Posts: 62
  • Karma: +0/-0
Re: New Tower ability
« Reply #14 on: January 24, 2007, 06:20:18 am »
So I used your AOchat.php but now nothing gets triggered.  All msgs get logged as:

[Org. Msg] 0: Whatever The Message is.


Is there something that goes in Bot.php?  I looked at the SVN of AOchat.php and Bot.php and Bot.php no longer calls AOExtMsg in AOchat.php.  So what do I need to do?
Siocuffin (Squad Commander of United Notum Federation)
alts: Nebhyper, Nebalmighty.

 

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