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?
October 14, 2008, 10:28:18 AM

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.3.x Custom/Unofficial Modules > Topic: Whompa Module
Pages: [1] 2   Go Down
« previous next »
Print
Author Topic: Whompa Module  (Read 1279 times)
0 Members and 1 Guest are viewing this topic.
pod13
Freshman
*
Offline Offline

Posts: 6


Whompa Module
« on: May 12, 2007, 05:59:47 PM »

I've updated and ported the Whompa module I originally wrote for IGN bot to BeBot.

The Whompa module has three options:
<pre>whompa cities: Displays a list of known cities
<pre>whompa <city>: Shows the whompas for that city
<pre>whompa <origin> <destination>: Calculates a route from the origin city to the destination city.

* The whompa plugin does not use the Jobe whompas.
* The whompa plugin does not use the grid

Cities can be specified using either the city name or the zone.  The regex used to identify cities and zones was originally the one from Kuren's Helpbot (I believe) but I've done some tweaking over the years.  There may be some common abbreviations for locations which are not included in my match rules.  I don't play an Omni char so I don't know the short-hand used for all of those locations.

For example, either of these commands should work:
Code:
you: !whompa oa bor
bot: Old Athen -> Tir -> ICC -> Newland City -> Borealis :: Details

you: !whompa mmd ent
bot: Newland Desert -> Newland City -> ICC -> Omni Trade -> Omni Entertainment :: Details

The module color-codes the cities by Faction based on the colors used for whompa routes in the Atlas of Rubi-Ka (formerly CSPMap), but this feature isn't working correctly at the moment.

The attachment includes the module (a php file) and the help (a txt file).

Let me know if I've missed something.

POD13

*EDIT* 5/17 -- Fixed commpre bug.
« Last Edit: May 17, 2007, 05:51:14 PM by pod13 » Logged
Glarawyn
BeBot Developer
Champion
********
Offline Offline

Posts: 399



Re: Whompa Module
« Reply #1 on: May 14, 2007, 11:00:47 AM »

I noticed you don't have the Jobe whompas. Is the Omni whompa to The Longest Road also excluded?
Logged
pod13
Freshman
*
Offline Offline

Posts: 6


Re: Whompa Module
« Reply #2 on: May 14, 2007, 07:13:29 PM »

The Jobe whompas aren't included by design.  I'm on the fence about adding them, you know, because of froobs.

The Omni route to The Longest Road is in there named, The Longest Road.  This should cause much grief to clanners.  If I'm looking for a route the TLR I really want to go to Bliss but since cities are matched before zones that won't happen. I should rename the Omni route to TLR to Omni-Tek Mine and then a request for TLR will match both Clan and Omni routes.
Logged
tonyuh
Rookie
**
Offline Offline

Posts: 48


Re: Whompa Module
« Reply #3 on: May 15, 2007, 11:07:58 AM »

Code:
$this -> cityTable  = $this -> bot -> define_tablename("whompa_cities", "true");
$this -> connectorTable = $this -> bot -> define_tablename("whompa_connectors", "true");

My define_tablename() has 3 args, but theres only 2 here... are you using another function that I dont' have?

Cheers,
Tony
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1061


Re: Whompa Module
« Reply #4 on: May 15, 2007, 11:38:26 AM »

Quote from: tonyuh on May 15, 2007, 11:07:58 AM
My define_tablename() has 3 args, but theres only 2 here... are you using another function that I dont' have?
SVN version only got two parameters, $name and $prefix. If you got $suffix there you got the version I used in the beginning, just change $suffix) to $suffix = "false") then.
Logged
tonyuh
Rookie
**
Offline Offline

Posts: 48


Re: Whompa Module
« Reply #5 on: May 15, 2007, 04:38:15 PM »

ah ok thanks.. now it doesn't crash the bot anymore.. but I'm getting "Try /tell bot !help !whompa" with every commands. Is there something extra I need to do or this just doesn't work with bebot 0.2.x?

Cheers,
Tony
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1061


Re: Whompa Module
« Reply #6 on: May 15, 2007, 04:41:15 PM »

It should work with 0.2 too, do you have rights management implemented? Then you got to enable the command (didn't check source code of the module myself...).
Logged
tonyuh
Rookie
**
Offline Offline

Posts: 48


Re: Whompa Module
« Reply #7 on: May 15, 2007, 04:55:43 PM »

Is rights managment a module or something? From my understanding... all the rights management I use is "in_group($name, "admin")" or similar.

Tony
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1061


Re: Whompa Module
« Reply #8 on: May 15, 2007, 05:10:10 PM »

I posted my first version of rights management somewhere, which allowed enabling and disabling of commands per user group.

But if you don't know about it you most likely don't have it in your bots Smiley

No clue what's the problem then, sorry.
Logged
pod13
Freshman
*
Offline Offline

Posts: 6


Re: Whompa Module
« Reply #9 on: May 15, 2007, 10:45:56 PM »

Quote from: tonyuh on May 15, 2007, 04:38:15 PM
I'm getting "Try /tell bot !help !whompa" with every commands. Is there something extra I need to do or this just doesn't work with bebot 0.2.x?

So if you do "/tell bot !whompa cities" it replies with "Try /tell bot !help !whompa"?
Logged
tonyuh
Rookie
**
Offline Offline

Posts: 48


Re: Whompa Module
« Reply #10 on: May 16, 2007, 04:49:40 AM »

yes, this is what i get

Code:
To [Eobot]: !whompa
Eobot: Try /tell Eobot !help !whompa
To [Eobot]: !whompa cities
Eobot: Try /tell Eobot !help !whompa
To [Eobot]: !whompa city
Eobot: Try /tell Eobot !help !whompa
To [Eobot]: !whompa bor
Eobot: Try /tell Eobot !help !whompa
To [Eobot]: !whompa bor oa
Eobot: Try /tell Eobot !help !whompa

Cheers,
Tony
Logged
pod13
Freshman
*
Offline Offline

Posts: 6


Re: Whompa Module
« Reply #11 on: May 16, 2007, 05:54:51 AM »

That's messed up.  I should probably download 0.2.x bot and play with it but I won't have time until Thursday at least.

I didn't implement any security checking within the module.  It runs through a series of regex checks trying to identify the command and if it falls to the bottom it replies with the Help message.  Hmm, so none of the regex checks are matching...

Is this defined in 0.2.x?
Code:
$this->bot->compre
Logged
Alreadythere
BeBot Maintainer
Administrator
Grandmaster
********
Offline Offline

Posts: 1061


Re: Whompa Module
« Reply #12 on: May 16, 2007, 05:59:21 AM »

Quote from: pod13 on May 16, 2007, 05:54:51 AM
Is this defined in 0.2.x?
Code:
$this->bot->compre
It's
Code:
$this->bot->commpre
in both versions.
Logged
tonyuh
Rookie
**
Offline Offline

Posts: 48


Re: Whompa Module
« Reply #13 on: May 16, 2007, 05:56:38 PM »

that was it.. should have spotted that.. doh! thanks!

Cheers,
Tony
Logged
fija
Freshman
*
Offline Offline

Posts: 3


Re: Whompa Module
« Reply #14 on: May 17, 2007, 07:37:16 AM »

Ok, I have a similar problem to that one that tonyuh had.

I am running bebot 0.3.4svn and have dropped the whompa.php into the cutsom/modules folder. When I do a help in the bot I cannot see the whompa command anywhere. When I try and run it in pgmsg the bot just echo's the char name that issued the command and then sends the char a tell to request help from the bot.

I am new to v3 and the new rights management system but from what I could see from the DB the minlevel for the whompa command is guest.

If you need any more info I will happy to provide what I can.

Thanks in advance

Fija
Logged
Pages: [1] 2   Go Up
Print
BeBot - An Anarchy Online/Age Of Conan chat automaton > Forum > Modules > Modules for older versions > 0.3.x Custom/Unofficial Modules > Topic: Whompa Module
« previous next »
 
Jump to:  

Recent
Buddylist for guildbot
by Zacix
[Today at 09:43:40 AM]

Link 2 Guilds via 2 Bots?
by Temar
[Today at 08:42:11 AM]

OnlineOrg
by Karsta
[October 13, 2008, 06:54:20 AM]

!security Levels
by Nytridr
[October 12, 2008, 11:36:45 PM]

Bossloot for 5.2
by Brac
[October 12, 2008, 04:45:17 PM]

Ported Modules
by Jiheld
[October 12, 2008, 09:00:13 AM]

raid/point system suggest...
by Temar
[October 11, 2008, 11:45:40 PM]

!timers suggestions: alts...
by Alreadythere
[October 11, 2008, 03:19:46 PM]

!server does not work
by Alreadythere
[October 11, 2008, 06:54:38 AM]

TWC
by clashbot
[October 10, 2008, 08:52:57 AM]
Stats
Members
Total Members: 989
Latest: Syphae
Stats
Total Posts: 10814
Total Topics: 1459
Online Today: 14
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 2
Guests: 15
Total: 17
Zacix
Hades

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