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

0 Members and 1 Guest are viewing this topic.

Offline Xenixa

  • Contributor
  • *******
  • Posts: 307
  • Karma: +0/-0
Re: New Tower ability
« Reply #15 on: January 24, 2007, 08:54:35 am »
It should.
In Bot.php look for the function inc_gmsg($args)

You should see something like this:
Code: [Select]
if($user == "0" && (substr($args[2], 0, 2) == "~&"))
{
$a_aoext = new AOExtMsg($args[2]);
$args[2] = $a_aoext -> text;
}
else
$args[2] = utf8_decode($args[2]);

Thats the function in Bot.php that calls AOExtMsg in AOChat.php
<<< 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 #16 on: January 24, 2007, 03:48:13 pm »
That is odd.  That is exactly what I have.

However, that is not getting triggered.  Every message is now going to the else and not meeting the if criteria.

Only thing I changed was the AOchat.php to the one you posted here.


EDIT: I think my issue is caused by

         case AOCP_GROUP_MESSAGE :
          /* Hack to support extended messages */
          if($packet->args[1] === 0 && substr($packet->args[2], 0, 2) == "~&")
          {
            $em = new AOExtMsg($packet->args[2]);
            if($em->type != AOEM_UNKNOWN)
            {
              $packet->args[2] = $em->text;
              $packet->args[] = $em;
            }
          }
          break;


under get_packet
« Last Edit: January 24, 2007, 04:11:48 pm by nebhyper »
Siocuffin (Squad Commander of United Notum Federation)
alts: Nebhyper, Nebalmighty.

Offline nebhyper

  • BeBot User
  • **
  • Posts: 62
  • Karma: +0/-0
Re: New Tower ability
« Reply #17 on: January 24, 2007, 08:23:45 pm »
I just tested the timers.  I launched Air Strike.  Then a few minutes later launched Laser Strike.

Then I went to each machine and tried again.

Your Organization cannot initiate a laser strike at the moment. Please wait at least 879 seconds.
Your Organization cannot initiate a bombing raid at the moment. Please wait at least 614 seconds.
« Last Edit: January 24, 2007, 09:24:59 pm by nebhyper »
Siocuffin (Squad Commander of United Notum Federation)
alts: Nebhyper, Nebalmighty.

Offline nebhyper

  • BeBot User
  • **
  • Posts: 62
  • Karma: +0/-0
Re: New Tower ability
« Reply #18 on: March 02, 2007, 01:10:52 am »
It is confirmed both HQ weapons are 2 different timers.  However we only get 1 message which is the same for both weapons.

I posted in AO forums game suggestions to make a unique message for each weapon fired.

http://forums.anarchy-online.com/showthread.php?t=485190

That is my thread.  Feel free to express your oppinion on this matter there as it can/will affect BeBot. (That is aochat.php code to define the messages if they get changed.)

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

 

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