collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18365
  • stats Total Topics: 2500
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: [AO] Rally with waypoint  (Read 235246 times)

0 Members and 1 Guest are viewing this topic.

Offline Nogoal

  • BeBot Apprentice
  • ***
  • Posts: 77
  • Karma: +0/-0
[AO] Rally with waypoint
« on: July 09, 2009, 11:13:03 am »
I added a waypoint link to !rally. The problem is that you had to know the playfield number. So it also comes with a table. All pfs should be in the table except backyards and missions. I also added some abbreviations like EFP, OA, etc.

How to install:
- copy pfnumb.sql to extra/table_data
- delete your old rally.php
- copy the new rally.php to customs/modules

or simply replace the old by the new one

How to use:
it works like the old one used to. You can use either playfield name or number. You can get the number in game by hitting ctrl-F9.

With playfield name:
!rally old 10 10 Rally at OA grid!
Bot: Rally info: [Zone: Old Athen City] [Coords: 10, 10] [Link] [Note: Rally at OA grid!]

With playfield number:
!rally 540 10 10 Rally at OA grid!
Bot: Rally info: [Zone: Old Athen City] [Coords: 10, 10] [Link] [Note: Rally at OA grid!]

If bot find multiple entries in the db he'll ask you for the right one.

Rally.phps
pfnumb.sql

Offline clashbot

  • BeBot Expert
  • ****
  • Posts: 295
  • Karma: +0/-0
    • Ascension's Home
Re: [AO] Rally with waypoint
« Reply #1 on: July 09, 2009, 11:30:21 pm »
works well, already implimented, though it's now up to the org to use it..heheh, that's another task in of itself

Offline clashbot

  • BeBot Expert
  • ****
  • Posts: 295
  • Karma: +0/-0
    • Ascension's Home
Re: [AO] Rally with waypoint
« Reply #2 on: July 10, 2009, 04:29:32 pm »
one issue...needs and error handler, as if you put in the wrong pf number, causes bot to crash

Offline Nogoal

  • BeBot Apprentice
  • ***
  • Posts: 77
  • Karma: +0/-0
Re: [AO] Rally with waypoint
« Reply #3 on: July 13, 2009, 03:54:36 pm »
Fixed. You have to download Rally.phps again.

Offline clashbot

  • BeBot Expert
  • ****
  • Posts: 295
  • Karma: +0/-0
    • Ascension's Home
Re: [AO] Rally with waypoint
« Reply #4 on: July 13, 2009, 04:08:21 pm »
ty, will test it out in a few minutes

Offline Talmahera

  • BeBot Rookie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: [AO] Rally with waypoint
« Reply #5 on: July 16, 2009, 08:41:37 am »
Thank you for this nice plugin Nog.

You can use this script too if your raidbot is an old one (like Budabot :P) :

Quote
<a href="text://To get waypoint to rally in %4 please <a href='chatcmd:///waypoint %1 %2 %3'>click this</a>">Waypoint to %4</a>

Where %1 %2 are coord, %3 pf zone and %4 name. Ex : /way 550 1000 590 Rally
« Last Edit: July 16, 2009, 08:45:37 am by Talmahera »

Offline bitnykk

  • Administrator
  • ********
  • Posts: 81
  • Karma: +0/-0
Re: [AO] Rally with waypoint
« Reply #6 on: April 03, 2016, 03:44:19 pm »
Only issue with this plugin is it's referring to a RK region abbrevation table wich ... excludes any waypoint link for SL ! Here are faulty lines of function set_rally() inside file rally.php to be commented for a quickfix :

Code: [Select]
      if(is_numeric($zone))
      {
      //   $zonenumc = $this -> bot -> db -> select("SELECT area FROM #___land_control_zones WHERE zoneid = $zone");
      //   if(!empty($zonenumc))
      //   {
            $zonenum = $zone;
      //      $zone = $zonenumc[0][0];
            $e = "and Way";
      //   }
      //   else
      //      $zonenum = FALSE;
      }

Once applied, you'll be able to add any rally with waypoint link, as those 59 i'm proposing in joined file.

 

* Recent Posts
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 ]


Bebot and Rasberry by bitnykk
[November 29, 2023, 11:04:14 pm ]

* Who's Online
  • Dot Guests: 84
  • 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