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

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

Author Topic: Event System (beta)  (Read 10234 times)

0 Members and 1 Guest are viewing this topic.

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: Event System (beta)
« Reply #15 on: May 17, 2007, 04:54:03 pm »
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-

Offline tonyuh

  • BeBot User
  • **
  • Posts: 48
  • Karma: +0/-0
Re: Event System (beta)
« Reply #16 on: May 17, 2007, 05:23:52 pm »
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

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: Event System (beta)
« Reply #17 on: May 17, 2007, 05:42:32 pm »
Well if you're running a guild bot, it will currently always return to GC, should I make that optional even for guildbots?

-jj-

Offline tonyuh

  • BeBot User
  • **
  • Posts: 48
  • Karma: +0/-0
Re: Event System (beta)
« Reply #18 on: May 17, 2007, 07: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, 07:19:58 pm by tonyuh »

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: Event System (beta)
« Reply #19 on: May 17, 2007, 11: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-

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: Event System (beta)
« Reply #20 on: May 18, 2007, 01:19:46 pm »
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-

Offline tonyuh

  • BeBot User
  • **
  • Posts: 48
  • Karma: +0/-0
Re: Event System (beta)
« Reply #21 on: May 18, 2007, 01:55:42 pm »
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

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: Event System (beta)
« Reply #22 on: May 18, 2007, 03:02:52 pm »
Ok, I'll try to find the motivation to put first draft together during the weekend :-)

-jj-

Offline Ornaola

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
Re: Event System (beta)
« Reply #23 on: May 18, 2007, 03:54:50 pm »
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.

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: Event System (beta)
« Reply #24 on: May 18, 2007, 04:10:23 pm »
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-

Offline Ornaola

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
Re: Event System (beta)
« Reply #25 on: May 18, 2007, 04:13:04 pm »
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 :)


edit: great, waiting for updated version then  ;D

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: Event System (beta)
« Reply #26 on: May 18, 2007, 04:31:21 pm »
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-

Offline jjones666

  • Contributor
  • *******
  • Posts: 353
  • Karma: +0/-0
Re: Event System (beta)
« Reply #27 on: May 21, 2007, 12:28:50 am »
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, 07:40:53 am by jjones666 »

Offline Khalem

  • BeBot Founder
  • Administrator
  • ********
  • Posts: 1169
  • Karma: +0/-0
    • http://www.ancarim.com
Re: Event System (beta)
« Reply #28 on: May 21, 2007, 12:29:36 am »
JJ, want SVN access yet? ;)
BeBot Founder and Fixer Kingpin

Offline Ornaola

  • BeBot User
  • **
  • Posts: 20
  • Karma: +0/-0
Re: Event System (beta)
« Reply #29 on: May 21, 2007, 01:16:24 am »
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  ;D 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 :)

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  ;)


« Last Edit: May 21, 2007, 01:35:51 am by Ornaola »

 

* Recent Posts
[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm]


0.8.x updates for AoC by bitnykk
[January 30, 2024, 11:16:08 pm]


0.8.x updates for AO by bitnykk
[January 30, 2024, 11:15:37 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: 675
  • 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