BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => AO 0.6.x Custom/Unofficial modules => Topic started by: hewes on February 18, 2009, 03:25:42 am

Title: Raid Planner Module
Post by: hewes on February 18, 2009, 03:25:42 am
Another new build, fixing the problems below

This module is a BETA in terms of development... is does pretty much what I want it to do, but I've only been able to do so much testing myself.

The purpose of the module is to help guilds plans and organise regular events and raids. Please note tat if/when you use it there are references to dkp points in there... this is NOT a dkp system. This is so that if/when I have time I can expand this to include a dkp system, and certain functionality is already there.

There are 4 commands registered with this module, 2 are aimed for officers (and thus set to ADMIN level), and 2 for general use.
Title: ADMIN commands
Post by: hewes on February 18, 2009, 03:33:12 am
!raidtype

This command is used to create catagorries of regular events that your guild runs. (rather than pre-loading the bot with the obvious ones - they would be obvious to me, but I don't know your guild).

!raidevent

menu driven interface to create events (from the pre-created ones you have already registered, although there is also an option to create a one-off special event). Once created the event is annouced in guild chat
Title: General commands
Post by: hewes on February 18, 2009, 03:36:05 am
!raidstatus

Used to set or report the status's of those in the guild. There are 4 status's: not-set, too-low, raider and non-raider. Anyone who sets raider will get spammed with the guilds raid calander and signup options.

!raidsign

Used to sign up to events, and to report on who has / has not signed up.
Title: Module settings
Post by: hewes on February 18, 2009, 03:48:40 am
raidtyperaideventraidsign
Title: Re: Raid Planner Module
Post by: Wizhk on February 18, 2009, 06:29:20 am
Nice Mod.. One thing it needs is an EST, PST, GMT, etc.. setting.

Wizhk
Title: Re: Raid Planner Module
Post by: Wizhk on February 18, 2009, 06:32:23 am
Also it is not deleting a created Raidtype when I select confirm.

Wizhk
Title: Re: Raid Planner Module
Post by: Wizhk on February 18, 2009, 08:09:30 am
OK, have been playing with this alot more.

Issues:

          -Can not delete raidtype. Clicking on confirm for deletetion does nothing.
          -1 miss-spell on link to view. Labeled as "veiw"

What I would like:

         -Option for 0 DKP points. We dont do DKP for everything.
         -Ability to label the time zone used for specific events. Or an overall notation.
         -Really need.. The ability to make notes under each event in the list. We have a siege set-up on the event list and the only info seen is Siege.

I really like what you have done with this Module. Everyone should be using it.

Thank You,

Wizhk
Title: Re: Raid Planner Module
Post by: hewes on February 19, 2009, 03:53:54 pm
Changed the spelling typo, and the deletion wasn't working because of a comma, which is not corrected. Added the 0 as a default option for dkp. Like I said the dkp point system isn't in use atm anyway. Btw, you can already change a single events dkp when you set it up by:
To do:
I will add the ability to add in notes for each event (similar to how players can add notes to their signup)
I'm not sure about the time thing. My presumption was that everyone could check the current time of the bot using !time (as this is the time for whoever runs the bot, and they are usually either the guild leader, or a high-ranking officer). But, saying that, it won't be difficult to add... What options should I include? GMT BST CET EST PST CST AST... there is a very long list. I was wondering if I should include instead the current bot time at the bottom? Thoughts?
Title: Re: Raid Planner Module
Post by: Wizhk on February 20, 2009, 09:09:07 am
I believe that it would be best to simply have a note section of 3 letters next to the time so that people could add there own 3 letter time.

You mention adding a notes like the players notes... Maybe this is just much simpler then having notes listed under the headline, but notes under each even would be much better imo.. and not just a notes button. If not possible then that is understood, notes button will work.

That being said. You mention that there is a constant game time set to PST.. this is accurate. Also.. if you can incorporate the Note section for the activity.. The time could be mentioned in there by the event coordinator. ;)

Wizhk
Title: Re: Raid Planner Module
Post by: hewes on February 21, 2009, 05:42:18 am
Notes have now been added (anyone who creates a raid can now add notes to the event).

Times are now displayed with a timezone notifier (eg GMT EST)

(note that the timezone displayed is as per the computer that the bot runs on, so on mine it would display GMT or BST)

A few minor spelling mistakes have been corrected.
Title: Re: Raid Planner Module
Post by: Wizhk on February 21, 2009, 08:47:51 am
Love the changes.. they work great.

An Error that I noticed with the original module and still with the newest version though.

If you say, go into a raid event and edit the time, if you DO NOT edit the date at the same time it will change the date and put an incorrect time.

Wizhk
Title: Re: Raid Planner Module
Post by: hewes on February 21, 2009, 03:12:29 pm
thanks and done

Americans do dates m-d-y, but I had used the "proper" notation of d-m-y, apparently they are not compatible

Title: Re: Raid Planner Module
Post by: hewes on February 24, 2009, 12:17:47 am
I realised that I had not, in fact, corrected the probelm with editing the DATE of a raid. So I have finally corrected the code and tested it. It is only a minor change, but previosly to this you could not edit an event properly, as it would mess up the times.

Please download again.

Also, my next aims in this are:

To implement a ONLINE tag in the signup list.
To add in a facility to actually keep track of who is invited into the raid team, and who has to be denied, thus allowing for rotations (and also this is the next step towards using this as a full dkp, although that will take some working).
Title: Re: Raid Planner Module
Post by: Monk4y on February 25, 2009, 03:18:08 am
This is a really nice module.

May I make a request? Would it be possible to split the signups into their respective classes and order them by signup date?

So all the guardians would be grouped together, the first to signup would be the top guardian and the last to signup would be on the bottom?

Keep up the good work, thankyou!
Title: Re: Raid Planner Module
Post by: Caliji on February 28, 2009, 01:39:20 am
My Guild does not use DKP, how would I take that totally out of the modual?
Title: Re: Raid Planner Module
Post by: Wizhk on March 13, 2009, 10:20:13 pm
Simple enough to just do -10 each time..

Wizhk
Title: Re: Raid Planner Module
Post by: Getrix on March 26, 2009, 10:47:16 pm
You need to take a look on sql injection... There are atleast one weak point in the notes where you do not mysqlsafe text added.

EDIT:

Line 745
Add: $notes = mysql_real_escape_string($notes);

Line 746
Old: $query =  "UPDATE #___RC_Signups SET `notes` = '$notes' WHERE `player` = '$main'";
New: $query =  "UPDATE #___RC_Signups SET `notes` = '$notes' WHERE `player` = '$main' AND `raidid` = '$event'";

Title: Re: Raid Planner Module
Post by: Allisande on May 16, 2009, 12:05:27 am
Im having an issue.  When I try do !raidevent i get the click Here.  I do...get the Raid Event Admin...click it and I am getting "Another raidevent session is in use by Allisande"
Title: Re: Raid Planner Module
Post by: Allisande on May 16, 2009, 01:24:31 am
Also this only happens if someone else has clicked the create an event deal.  And then once that happens only the first person to try it can do it until the bot is restarted.
Title: Re: Raid Planner Module
Post by: Allisande on May 30, 2009, 01:07:52 am
Tried to delete an event and I got the same message.  You can not.....because there is already a raid session in use by Allisande
Title: Re: Raid Planner Module
Post by: Shakor on June 05, 2009, 06:36:37 pm
Is it possible to mass invite all the signed up members into a raid?
Title: Re: Raid Planner Module
Post by: Getrix on June 05, 2009, 08:48:35 pm
When 1.05 hits live it should be possible to add link to a command so ppl can get invited by clicking nick ex.
But its not possible to invite to raid via /command yet.
Title: Re: Raid Planner Module
Post by: Shakor on June 05, 2009, 09:25:52 pm
Ah yeah your right forgot about that. Too bad.
Title: Re: Raid Planner Module
Post by: pint0 on June 09, 2009, 03:45:25 pm
Heya, just installed this module but im getting the following error once i try to add an event:

Warning: Invalid argument supplied for foreach() in /bot/custom/modules/raidcal.php on line 884

line 884 is : foreach ($this->events as $event)

I already created raidtypes and they are correctly displayed so im a bit clueless on what the problem is.

Thx in advance.
Title: Re: Raid Planner Module
Post by: Temar on June 11, 2009, 12:18:39 am
basicly that error is cause by $this -> events not being an array which is usually because there is no events stored in it
Title: Re: Raid Planner Module
Post by: pint0 on June 11, 2009, 06:09:17 pm
well thing is i can't create events at all, when i use the links from the windows created they dont do anithing, tough if i use them manualy i can triger some actions. still no clue what is wrong :S
Title: Re: Raid Planner Module
Post by: toxicman on June 15, 2009, 02:26:51 pm
Hey!

I found this module useful, but it doesnt work correct for me.

There are 2 things at least:

1) In the configuration tool when you trying to create a raid event or change anything, it adds extra space as in:

To [Painbot]: !raidevent new  day 1245009600

adds an extra space after "new"
or

To [Painbot]: !raidevent new  type 7

same thing..

if i do it manually its ok, but cant set the date correct,
To [Painbot]: !raidevent new day 1245009600
[Painbot]: Can not use a date that is in the past

(if i choose next day, it works though)


2) Text color in the links are black. So I have to select all text to read it.. as in:

Raid Event Admin


Currently there are 0 events:

To create a new event, click here


"raid event admin" is red, rest is black, and only can see link on "here" cause its blue.





Any way to fix it ? :)
Title: Re: Raid Planner Module
Post by: Temar on June 15, 2009, 06:22:05 pm
ive been playing with the module my self, aparently the extra space is because it should have an id number there thats missing or somit, as for if its required i duno
Title: Re: Raid Planner Module
Post by: toxicman on June 16, 2009, 05:46:12 pm
doesnt req ID number i think, i have set events manually just removing that space..
wtb that module fixed :)
Title: Re: Raid Planner Module
Post by: Drizzurdeen on July 09, 2009, 05:52:27 pm
ok perfekt mod ... we use it ... and it is really wunderful but ....

it would be nice wenn the raid-overview would be like this:

this ist teh viewing now

Quote
Details of raid:
#17 T1VISTRIX on Wednesday 15th Jul at 7:00pm CEST for 0 dkp points
Notes:
Wenn noch Zeit und Laune ist wollen wir danach noch Killi machen ::: Invite ist ab 19:00 ::: Start ist 19:30
Attending:
Sinella
Bragi
Bullwy
DrizzurdenNotes
Eimsbuscher
Nissaia
Silmarwen
Lewiathan
Andorius

Declined:
Für dieses Event hat sich kein Mitglied angemeldet
Signup for this event
Decline this event
Broadcast in guild

would be nice wenn the raid-view would like this:
Quote
Details of raid:
#17 T1VISTRIX on Wednesday 15th Jul at 7:00pm CEST for 0 dkp points
Notes:
Wenn noch Zeit und Laune ist wollen wir danach noch Killi machen ::: Invite ist ab 19:00 ::: Start ist 19:30
Attending:
Guardian:
- Sinella LVL X
- Bragi LVL X
- Bullwy LVL X
Tempset of Set:
- Drizzurden LVL x
Herold of Xotli:
- Eimsbuscher LVL X
- Nissaia LVL X
Ranger:
- Silmarwen
- Lewiathan
- Andorius

Declined:
Für dieses Event hat sich kein Mitglied angemeldet
Signup for this event
Decline this event
Broadcast in guild

would be nice if someone could help me to get the Raid-View like this ... would be easier to manage the raid when i could see what kind of class and lvl the attending chars are ...

thank Drizzurdeen
Title: Re: Raid Planner Module
Post by: Drizzurdeen on July 16, 2009, 06:20:35 pm
realy no one an idea how i can i change the module so that i have the changed raid-view ???
Title: Re: Raid Planner Module
Post by: clashbot on July 16, 2009, 07:36:04 pm
the date setup doesn't work if this is used in AO...
Title: Re: Raid Planner Module
Post by: Allsopp on May 18, 2010, 10:58:18 pm
this module uses UTC as the timezone can it be set to est thru the bot or does it need to be done thru the config file???
Title: Re: Raid Planner Module
Post by: Bhaltair on May 21, 2010, 12:28:41 am
You can change it to EST through config file. I have done this myself.
Title: Re: Raid Planner Module
Post by: rmb on June 09, 2010, 04:00:40 pm
How can I disable notifications from this module?

I did "!set Logon_notifies Enabled Off"  but id does not work for "You have not configured your raid status, please do so now" messages.
Title: Re: Raid Planner Module
Post by: dragonjr on August 26, 2010, 04:44:40 pm
ok how do i change the DKP to 0 it  is set for defualt 10 how do i change it ???
Title: Re: Raid Planner Module
Post by: Drizzurdeen on August 28, 2010, 03:41:45 pm
try !settings ... or it could be set in !raidevent ore !raidtype (one of these two) ... there so i think u can change the default dkp for each event

hobe i could help
Title: Re: Raid Planner Module
Post by: dragonjr on September 02, 2010, 01:47:36 am
i was able to change the dkp on the event but i cant change it on the type of raid why is that or is there away to do it
thanks
Title: Re: Raid Planner Module
Post by: Drizzurdeen on September 02, 2010, 11:31:07 am
cause the event is the raid itself ;) ... like t1 t2 ... and only the event should be have dkp or not ^^
Title: Re: Raid Planner Module
Post by: elrojo on November 20, 2010, 11:10:16 pm
I cannot seem to get the command !raidtype new [name] to work.  I am the owner of the bot so shouldnt have admin issues.  All other commands work
Title: Re: Raid Planner Module
Post by: Tsamoonia on December 01, 2010, 09:03:41 pm
I was hoping that  someone could make an addition to the !raidcal raiding module.
I was thinking something along the lines of (when settings are set per character and not per account) that when someone signs up it not only shows their name but their class as well.  OR when they sign up period... they choose from any of their raid ready characters on their account and their sign up will list the character and class.

if this can be done please let me know.  and ty in advance.

i actually us it in AoC... so any information on my part that you need let me know... anything to help see the actual class that is signed up to raid will help
Title: Re: Raid Planner Module
Post by: versatos on September 05, 2011, 05:20:26 pm
This is a nice addon i use on aoc

but got few suggestion to be added

1) officers can add how many he need from each class (did more signup they got on a waiting list)
2) instead showing names , it show the classes and then the name of the one that signup
3) officers get button to massinvite the people so its easier
4) officers can add people manually
Title: Re: Raid Planner Module
Post by: Bamsina on November 07, 2011, 04:22:08 am
Any luck on the changes guys ?
Title: Re: Raid Planner Module
Post by: Ankou on July 06, 2012, 08:31:26 am
Hello,
I try to use this module, but have some problemes:

Cant use !raidtype or !raidevent.
Cant change the commands for this two orders to admins or leaders, it is always on N/A.
Any idea?
Title: Re: Raid Planner Module
Post by: Ankou on July 06, 2012, 09:10:17 am
nvm...need raid bot and not normal bot...
SimplePortal 2.3.7 © 2008-2024, SimplePortal