L* R*
HOME FORUM DOWNLOADS
Content
  Links
     Browse SVN
     SVN Commit log
     Documentation (Wiki)
  Developers
     Taskmanager
User
Welcome, Guest. Please login or register.
Did you miss your activation email?
November 21, 2008, 10:28:13 PM

Login with username, password and session length
Search



Advanced search
Support GoPHP5.org
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.2.x Custom/Unofficial Modules > Topic: Another Modified TowerAttack
Pages: [1] 2   Go Down
« previous next »
Print
Author Topic: Another Modified TowerAttack  (Read 2353 times)
0 Members and 1 Guest are viewing this topic.
craized
BeBot Contributor
Experienced
*******
Offline Offline

Gender: Male
Posts: 165



WWW
Another Modified TowerAttack
« on: December 06, 2005, 01:10:01 AM »

TOWER ATTACK MODULE

Description:
A module that displays tower attacks in pgroup and/or gc. Redid all notification messages (I think). And updated for the new patch.

Commands

!battle

!victory
Logged

Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]

Wanuarmi
BeBot Contributor
Apprentice
*******
Offline Offline

Posts: 121


Another Modified TowerAttack
« Reply #1 on: December 06, 2005, 02:44:13 AM »

dont you need the new AOChat.php to interpret the new messages? if not great job!
Logged
craized
BeBot Contributor
Experienced
*******
Offline Offline

Gender: Male
Posts: 165



WWW
Another Modified TowerAttack
« Reply #2 on: December 06, 2005, 02:48:55 AM »

This module is not completed. There are a couple of little tweaked things. This uses the AOChat.php from http://bebot.fieses.net/viewtopic.php?t=203 You also have to modify your Bot.php as described in that thread. It's not completely straight forward, but I'd say its worth it.
Logged

Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]

craized
BeBot Contributor
Experienced
*******
Offline Offline

Gender: Male
Posts: 165



WWW
Another Modified TowerAttack
« Reply #3 on: December 07, 2005, 08:23:32 AM »

Tower notifications have reached my expectations and I'll now consider them complete.
Logged

Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]

Xenixa
BeBot Contributor
Expert
*******
Offline Offline

Posts: 307



Re: Another Modified TowerAttack
« Reply #4 on: January 11, 2006, 03:38:00 AM »

Using this one myself now. Made a little change however, because I'm running Alreadythere's Persistent Whois cache module figured the TowerAttacks module could use the whois cache also.

Replaced this:
Code:
    function info($name) {
        $content = $this -> bot -> get_site('http://www.anarchy-online.com/character/bio/d/'.$this -> bot -> dimension.'/name/'.strtolower($name).'/bio.xml');
        $user['nick'] = $this -> bot -> xmlparse($content, 'nick');
        $user['profession'] = $this -> bot -> xmlparse($content, 'profession');
        $user['level'] = $this -> bot -> xmlparse($content, 'level');
        $user['title'] = $this -> bot -> xmlparse($content, 'profession_title');
        $user['AT'] = $this -> bot -> xmlparse($content, 'defender_rank');
        $user['AI'] = $this -> bot -> xmlparse($content, 'defender_rank_id');
        $user['org'] = $this -> bot -> xmlparse($content, 'organization_name');
        $user['rank'] = $this -> bot -> xmlparse($content, 'rank');
        $user['faction'] = $this -> bot -> xmlparse($content, 'faction');
        $this -> user = $user;
    }

With This:
Code:
    function info($name) {
        $who = $this -> bot -> whois -> lookup($name);
        $user['nick'] = $who['nick'];
        $user['profession'] = $who['profession'];
        $user['level'] = $who['level'];
        $user['org'] = $who['org'];
        $user['faction'] = $who['faction'];
        $this -> user = $user;
    }

Works like a Champ. Smiley
Logged

<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky
Xenixa
BeBot Contributor
Expert
*******
Offline Offline

Posts: 307



Re: Another Modified TowerAttack
« Reply #5 on: May 07, 2006, 04:45:52 AM »

As I noted in Wolfbiters thread here - http://bebot.shadow-realm.org/index.php/topic,378.msg2312/topicseen.html#msg2312
I've updated this module to show LCA info.
You can Get it Here

Other changes incl:
- Uses and parses Tower Messages from AOChat.php 1.19 and the custom version mentioned in this thread.
- Requires as stated above in the previous post, Alreadythere's whois module.
- Search battles by playfield, EX: !battle Lush - will return all recent battles in Lush Fields. The search uses the sql LIKE function for matching.

This is mostly for Bebot 0.3.2 and above. I havn't tested it with any of the older bot versions but it should work.
One last note. I had to disable Craized's anti-spam code for the Tower Alerts. PHP 5 was freaking out over it. Looking at making another method for that routine but if anyone else wants to take a stab at it, feel free.
« Last Edit: May 07, 2006, 04:54:46 AM by Xenixa » Logged

<<< Hack's in Zend Studio

All my Custom Bebot files may be Found Here <-clicky
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1077


Re: Another Modified TowerAttack
« Reply #6 on: May 09, 2006, 01:40:51 PM »

Great work Xenika, thanks Smiley

Always wanted to do something like that myself, but never got around to it.
Now I just got to add the zone to the victories table.
Logged
Pharexys
Apprentice
***
Offline Offline

Posts: 94


Re: Another Modified TowerAttack
« Reply #7 on: May 13, 2006, 07:16:11 AM »

Quote from: Xenixa on May 07, 2006, 04:45:52 AM
As I noted in Wolfbiters thread here - http://bebot.shadow-realm.org/index.php/topic,378.msg2312/topicseen.html#msg2312
I've updated this module to show LCA info.
You can Get it Here

Other changes incl:
- Uses and parses Tower Messages from AOChat.php 1.19 and the custom version mentioned in this thread.
- Requires as stated above in the previous post, Alreadythere's whois module.
- Search battles by playfield, EX: !battle Lush - will return all recent battles in Lush Fields. The search uses the sql LIKE function for matching.

This is mostly for Bebot 0.3.2 and above. I havn't tested it with any of the older bot versions but it should work.
One last note. I had to disable Craized's anti-spam code for the Tower Alerts. PHP 5 was freaking out over it. Looking at making another method for that routine but if anyone else wants to take a stab at it, feel free.




Awesome, loving it already Tongue
Logged
Mephistobane
Rookie
**
Offline Offline

Posts: 21


Re: Another Modified TowerAttack
« Reply #8 on: June 26, 2006, 12:27:56 PM »

so,will Xenixa's work with having JUST installed the whois cache(meaning it hasn't had time to put anything into the cache yet)?

and the link to the AOchat.php thing is broke, i would have liked to have looked at that thread Cheesy

anyways, it says meh bot crashs whenever it does a member lookup (Towerattack.php line 305) cuz member_lookup() is a non-object,or soemthing. sorry i dont have anything to paste atm, i clicked and the bot log disappeared. i'm thinking this is because there's nothing in the cache yet so i turned towerattack.php off a while until it does.

if anyone has comments they are welcome.
Logged
Barvaz
Freshman
*
Offline Offline

Posts: 12


Re: Another Modified TowerAttack
« Reply #9 on: July 21, 2006, 11:32:54 AM »

hey, the tower_attack table gets clean after some time? atm i got 3 pages of battles, so i wonder, it gets clean every day or after some limit of battle? 32 battles in the tower_attack table now
Logged
Tsuyoi
Rookie
**
Offline Offline

Gender: Male
Posts: 30


BigT


WWW
Re: Another Modified TowerAttack
« Reply #10 on: July 21, 2006, 12:22:48 PM »

Afaik, the module has a limiter on how many battles it shows, regardless of how many are in the history table.

Code:
$result = $this -> bot -> db -> select('SELECT time, off_guild, off_side, off_player, off_level, off_profession,
        def_guild, def_side, zone, x_coord, y_coord FROM tower_attack ORDER BY time DESC LIMIT 0, 13');

If you've removed that limit, then it'll spam the entire table, but if not, it'll only give you the last 13 battles.

In Xenixa's version (incase that's the one you're refering to) it's modified to 20:

Code:
$result = $this -> bot -> db -> select('SELECT time, off_guild, off_side, off_player, off_level, off_profession,
        def_guild, def_side, zone, x_coord, y_coord FROM tower_attack ORDER BY time DESC LIMIT 0, 20');

So if it's displaying too many results each time, you may want to look for those sections of the code and see if something is missing.  Hope that info helps Smiley
Logged
Barvaz
Freshman
*
Offline Offline

Posts: 12


Re: Another Modified TowerAttack
« Reply #11 on: July 21, 2006, 06:41:20 PM »

cool, thanks Smiley

i still need to learn php damnit Tongue
Logged
pusikas
Experienced
****
Offline Offline

Posts: 161


Re: Another Modified TowerAttack
« Reply #12 on: January 03, 2007, 04:48:46 PM »

Damn, I can never download stuff that Xenixa posts. Sad Can someone post a copy?
Logged

Luuv  Bot-Keeper of Vengeance ^^*
Malosar
Expert
*****
Offline Offline

Posts: 259


WWW
Re: Another Modified TowerAttack
« Reply #13 on: January 03, 2007, 04:54:43 PM »

Here you go. Not sure if it's exactly the same one but it supports the latest version of tower broadcast messages and whois cache.
« Last Edit: January 03, 2007, 04:56:26 PM by Malosar » Logged

Eternalist
General of The Syndicate
pusikas
Experienced
****
Offline Offline

Posts: 161


Re: Another Modified TowerAttack
« Reply #14 on: January 03, 2007, 05:33:51 PM »

I'm almost sure that this is not it. Does not make use of the LCA module. Smiley
Logged

Luuv  Bot-Keeper of Vengeance ^^*
Pages: [1] 2   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.2.x Custom/Unofficial Modules > Topic: Another Modified TowerAttack
« previous next »
 
Jump to:  

Recent
Change text in remember "...
by gerborg
[Today at 05:14:57 PM]

Log playtime from buddys ...
by Temar
[November 20, 2008, 10:33:57 AM]

Vote Core module and Simp...
by Temar
[November 19, 2008, 09:26:52 AM]

Restrict access for one m...
by Organizer
[November 19, 2008, 03:21:19 AM]

Custom / Revised Modules ...
by Elesar1
[November 17, 2008, 03:51:46 PM]

TWC
by Temar
[November 16, 2008, 11:39:12 AM]

Are there any FUN modules...
by Elesar1
[November 15, 2008, 07:39:15 PM]

Call to a member function...
by exxie
[November 15, 2008, 09:29:31 AM]

Ported Modules
by Alreadythere
[November 14, 2008, 06:10:07 PM]

cURL and other non-defaul...
by Temar
[November 14, 2008, 04:11:44 PM]
Stats
Members
Total Members: 1235
Latest: DDDepressionnn
Stats
Total Posts: 11037
Total Topics: 1496
Online Today: 17
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 1
Guests: 18
Total: 19
Elesar1

Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
TinyPortal v0.9.8 © Bloc | NewDef design by Bloc
Page created in 0.868 seconds with 30 queries. (Pretty URLs adds 0.045s, 4q)
Loading...