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, 08:56:58 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: Event System (beta)
Pages: 1 [2] 3   Go Down
« previous next »
Print
Author Topic: Event System (beta)  (Read 2528 times)
0 Members and 1 Guest are viewing this topic.
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: Event System (beta)
« Reply #15 on: May 17, 2007, 09:54:03 AM »

Hi,

The output function already will differentiate between GC and PG already where necessary (in theory).  Does it not work correctly?

Fixed the event name crashing bot and updated code.

Cheers for the feedback :-)

-jj-
Logged
tonyuh
Rookie
**
Offline Offline

Posts: 48


Re: Event System (beta)
« Reply #16 on: May 17, 2007, 10:23:52 AM »

Hi,

I just looked at the code again, in theory it should work not sure why it doesn't though, may be 0.2.x doesn't "return" the value to the right channel (since all the RETURN statement were all done in process_command function). I just always get the reply in gc... very weird.

Cheers,
Tony
Logged
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: Event System (beta)
« Reply #17 on: May 17, 2007, 10:42:32 AM »

Well if you're running a guild bot, it will currently always return to GC, should I make that optional even for guildbots?

-jj-
Logged
tonyuh
Rookie
**
Offline Offline

Posts: 48


Re: Event System (beta)
« Reply #18 on: May 17, 2007, 12:17:48 PM »

Probably not, since you don't want raid stuff spamming the gc. Although I thought making them a standard might be good so you can switch it to either gc or pgroup doesn't matter what type of bot it is. Not sure why, but returning queries into a fixed channel regardless of where it was initiated is bad, imo.

Of course if its too much work to change it to optional then if it is a guildbot, I'd rather have it reply to pgroup only, I'm sure others will think the same (I hope!).

Cheers,
Tony
« Last Edit: May 17, 2007, 12:19:58 PM by tonyuh » Logged
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: Event System (beta)
« Reply #19 on: May 17, 2007, 04:59:37 PM »

Ok, added the output options to !settings, defaults to GC off, PG on.  Should work, I didn't have time to test it :-)

PHP updated.

-jj-
Logged
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: Event System (beta)
« Reply #20 on: May 18, 2007, 06:19:46 AM »

I guess I wanted to add the timed raids as switchable option also.  I was thinking (after seeing the idea somewhere else), it would be nice to have a raid points template, ie, the ability to start a raid for a certain scenario which gives either more or less points per minutes (ie, city raid 0.5 points per 10 minutes, flat 1 point bonus - apf raid 1 point per 10 minutes, flat 2 points bonus etc etc).

Certainly it might be a nice idea, not sure how I'd implement it though :-)

Any thoughts?

Cheers,

-jj-
Logged
tonyuh
Rookie
**
Offline Offline

Posts: 48


Re: Event System (beta)
« Reply #21 on: May 18, 2007, 06:55:42 AM »

Nice one JJ, I'll test it out when I logon. About the raid template, the only way I can think of is to have another function to add template (ie. !ptstemp "name" "arg1" "arg2") into a table and then have the !startraid function match the name in the template table. Of course there will be a "generic" template which will be used if the name doesn't match any template name. Also !startraid should return which template used to ensure points are allocate using the right template.

Cheers,
Tony
Logged
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: Event System (beta)
« Reply #22 on: May 18, 2007, 08:02:52 AM »

Ok, I'll try to find the motivation to put first draft together during the weekend :-)

-jj-
Logged
Ornaola
Rookie
**
Offline Offline

Gender: Male
Posts: 20


Re: Event System (beta)
« Reply #23 on: May 18, 2007, 08:54:50 AM »

Jack is there any way to add other toons to same account?

when i do !account there only one toon in it, and !alts already added on bot.
Logged
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: Event System (beta)
« Reply #24 on: May 18, 2007, 09:10:23 AM »

I knew someone would ask for this... and actually, I was too lazy to change the original code which made an account for each toon.

Added to to-do list then, it shouldn't actually take too long to implement points -> main I don't think.  I'll keep logging to show raiding character, but points (and account display) stored on one main account.

-jj-
Logged
Ornaola
Rookie
**
Offline Offline

Gender: Male
Posts: 20


Re: Event System (beta)
« Reply #25 on: May 18, 2007, 09:13:04 AM »

oh and wish if it would be possible to chose ticking points too, and top25/all points in bot, with !account + alts on it too, mod would be perfects then (raid commands bit suck but that can be changed Smiley


edit: great, waiting for updated version then  Grin
Logged
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: Event System (beta)
« Reply #26 on: May 18, 2007, 09:31:21 AM »

Yeah I know the commands suck, the problem was that it was my friend Drpajeron who asked me to fix up the module for CoN bot and he's Omni so is used to such bizarre structure.  However, the original module was coded in such a way that it may be possible to use both sets of commands - !raid style also via !settings.

Thank you for feedback though, it gives me some incentive to plod on with the coding (and hopefully gives Vhab incentive to release Vhabot Guild Edition to usurp me once I've finished!!).

-jj-
Logged
jjones666
BeBot Contributor
Champion
*******
Offline Offline

Posts: 353


Re: Event System (beta)
« Reply #27 on: May 20, 2007, 05:28:50 PM »

Eventsystem:
-test version - please let me know how it works and give me feedback- :-)

- added 'points to main' and associated features
- added cleanup function for alt points
- added timed points option (fixed at 0.1/minute for the time being)
- some cosmetic fixes to outputs

To do:

- change commands to standard style
- add raid point templates

Notes:

- points changed to 0.1 point per minute (1/10) as per standard bebot.
- please drop table event_account and all rows marked "raid" in module_settings table (sqlyog ftw).
- use !pointscleanup (temporary/superadmin only) to merge alts with mains in points table.
- edit: points will tick all the time whilst raid is closed for entry (!closeraid)

Settings:-

!settings will give the option for static or timed points.  logs will show raiding character, points table (!account) will show main character.

Download:-

PHP (rename to eventsystem.php)

Thanks for feedback!

-jj-
« Last Edit: May 21, 2007, 12:40:53 AM by jjones666 » Logged
Khalem
BeBot Founder
Administrator
Grandmaster
********
Offline Offline

Gender: Male
Posts: 670



WWW
Re: Event System (beta)
« Reply #28 on: May 20, 2007, 05:29:36 PM »

JJ, want SVN access yet? Wink
Logged

BeBot Founder and Fixer Kingpin
Madman coder and destroyer of good code
Ornaola
Rookie
**
Offline Offline

Gender: Male
Posts: 20


Re: Event System (beta)
« Reply #29 on: May 20, 2007, 06:16:24 PM »

ok, installed on my bot, it looks well:

Account all good, !account on alts works too, points properly converted from old system too.

Starting, joining, closing and ending raid works fine too, except you forgot to add !raid unpause and !raid pause  Grin so there is no way to unpause ticking points raid to check if that part works well ( !raid pause should be auto on start when you do !raid start if possible)

So far works well, waiting for those fixed and can be put to use.

btw took me 10 mins of trying to figure out what command is to close and open raid, had to look  into code ^^ changing commands to standard would be highly welcome Smiley

and 1 more thing, donno if it is 2 much work, but would be really good if !account XXX would show all alts there too, if you know what i mean

!account Ornaola
74.9   points in your account :: click to view

when you click new window pops, shows only
::: Ornaola's Account :::.

Total Points:  84.9
Points Spent:  10
Points on Account:  74.9


- so if you could put all other toons that are on same account would be nice  Wink


« Last Edit: May 20, 2007, 06:35:51 PM by Ornaola » Logged
Pages: 1 [2] 3   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: Event System (beta)
« 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: 16
Online Ever: 168
(July 01, 2007, 09:30:02 PM)
Users Online
Users: 0
Guests: 25
Total: 25

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.305 seconds with 29 queries. (Pretty URLs adds 0.039s, 4q)
Loading...