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: Personal Org Tower Info Tool  (Read 3331 times)

0 Members and 3 Guests are viewing this topic.

Offline Threeze

  • BeBot Rookie
  • *
  • Posts: 11
  • Karma: +0/-0
Personal Org Tower Info Tool
« on: March 21, 2008, 04:03:00 am »
Currently I have a simple little module for my org's bot that outputs some useful tower information:
Quote
:::: Tower Information ::::

Control Tower Type QL Ranges

   Type 1: ql 10-33
   Type 2: ql 34-81
   Type 3: ql 82-128
   Type 4: ql 129-176
   Type 5: ql 177-200
   Type 6: ql 201-225
   Type 7: ql 226-275

Number of Towers Plantable

   Level 0-15    = You can't build any towers
   Level 15-74   = You can build 1 tower
   Level 75-149  = You can build 2 towers
   Level 150-199 = You can build 3 towers
   Level 200-220 = You can build 4 towers

Which has been somewhat useful, but what would be the most useful would be to have the ability for a higher ranking member to do something such as:

!tower add 60 90 Greater Omni Forest

which would get stored so when someone did !towers command, it would output the above quoted information as well as the org's current land tower ranges, and locations. i.e.:

Current Tower Locations for Organization 'Pretty Pony Patrol'
Land Range       Location
60 - 90             Greater Omni Forest

This *could* later on even be automated, so that land lost or won by the org would automatically adjust the locations and land ranges - this would obviously be quite a bit more coding work, however.

I would do all these things myself but, again, very limited knowledge... guess i'll just give some ideas... : o
« Last Edit: March 21, 2008, 04:29:12 am by Threeze »

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: Personal Org Tower Info Tool
« Reply #1 on: March 21, 2008, 04:28:16 am »
I have been working on a new notumwars module and that involves extending the land control zones to contain last known owner of a field. This is ofcourse not 100% but it will be able to give an indication atleast of the faciton (not) owning the field.

However I haven't got all that much time to spare these days, but eventually such a feature can be implemented.
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Tichy

  • BeBot User
  • **
  • Posts: 42
  • Karma: +0/-0
Re: Personal Org Tower Info Tool
« Reply #2 on: March 21, 2008, 12:42:36 pm »
Just some ideas:

 * if an org is attacked, add them as owner of the LCA
 * if an org lost a war, set the owner of the LCA to empty
 * if an org lost a field, set the owner of the LCA to empty
 * save the orgname of the org whichs wins a war (not as owner)
 * allow to save gas change time, so the module can conduct the
    gas states (they won't change as long the field isn't lost)
 * maybe assume gas change time when somebody attacks a field w/o known time (and mark it as unconfirmed)
 * include sow gas changes (Do someone know how it exactly work? Is the gas lowered for 1h from first attack or last attack?)
 * an interface to query for tower fields by orgs, by faction, by a certain gas level, by level range, ...
 * link it with the battle/victory commands to show all attacks on a certain tower field


These are just my two cent when I thought about towerfield tracing some weeks ago... but nothing coded yet ;)

If the owner is set, it will be always 100% correct. If no owner set, the state of the field is just unknown. This assumes the module can always detect the correct field which is attacked. This sometimes failes: on DNW Galway Shire #4 is not opened but attacks on field #3 are detected as attacks on #4 by bebot.

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: Personal Org Tower Info Tool
« Reply #3 on: March 21, 2008, 12:56:35 pm »
* link it with the battle/victory commands to show all attacks on a certain tower field
 * if an org is attacked, add them as owner of the LCA
 * if an org lost a war, set the owner of the LCA to empty
 * if an org lost a field, set the owner of the LCA to empty
 * save the orgname of the org whichs wins a war (not as owner)
This is already implemented. The winner of a war is saved as "last captor". The "Guild has lost their LCA in area" message comes when someone deletes a control tower and when an un-guilded player takes down a field. So if the field in question has been attacked in the last X hours the faciton of the field is set to the faciton of the attacker and no guild set as last captor.
* allow to save gas change time, so the module can conduct the
    gas states (they won't change as long the field isn't lost)
 * maybe assume gas change time when somebody attacks a field w/o known time (and mark it as unconfirmed)
 * include sow gas changes (Do someone know how it exactly work? Is the gas lowered for 1h from first attack or last attack?)
 * an interface to query for tower fields by orgs, by faction, by a certain gas level, by level range, ...
These are good ideas and should be possible to implement.
If the owner is set, it will be always 100% correct. If no owner set, the state of the field is just unknown. This assumes the module can always detect the correct field which is attacked. This sometimes failes: on DNW Galway Shire #4 is not opened but attacks on field #3 are detected as attacks on #4 by bebot.
For the owner to be 100% correct it would have to be entered manually. It's not always that the guild attacking a field is the one taking possession of it.

However the faction of a field is usually not the same after a field has been taken and that's the best indication we can provide automagically.
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Tichy

  • BeBot User
  • **
  • Posts: 42
  • Karma: +0/-0
Re: Personal Org Tower Info Tool
« Reply #4 on: March 22, 2008, 07:13:39 pm »
For the owner to be 100% correct it would have to be entered manually. It's not always that the guild attacking a field is the one taking possession of it.

My idea was to set the owner of a field if:
 - the field is attacked
 - someone tells the bot the owner

If a field was destroyed by an org it should become an unknown status (with a link to the last tower message of the field ;). I think it happens more often that the winners don't build themself.

Another point crossed my mind: the tower gas times are reset on server restarts imho, so the module should track the server status via the xml file and reset the timers on serverup.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: Personal Org Tower Info Tool
« Reply #5 on: March 22, 2008, 07:25:14 pm »
Another point crossed my mind: the tower gas times are reset on server restarts imho, so the module should track the server status via the xml file and reset the timers on serverup.
No, only replanting the CT changes the gas times.

 

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