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: Raidbot: reward points, raid lock, raid check  (Read 5498 times)

0 Members and 1 Guest are viewing this topic.

Offline Pablo

  • BeBot Rookie
  • *
  • Posts: 13
  • Karma: +0/-0
Raidbot: reward points, raid lock, raid check
« on: September 14, 2007, 03:49:13 pm »
Hello all,
I'm testing the new 4.1 version of Bebot Raidbot.

If I see well (I hope yes), there aren't indispensable commands to:
1. Add points automatically to reward all the raiders joined the raid;
2. Lock the raid;
3. Vicinity raiders presence check.

Thank you everyone for all the great job!

Offline Blueeagle

  • Omnipotent
  • BeBot Hero
  • ******
  • Posts: 323
  • Karma: +0/-0
Re: Raidbot: reward points, raid lock, raid check
« Reply #1 on: September 14, 2007, 04:01:05 pm »
I'm not quite sure that I understand your question but have a look-see at http://bebot.link/wiki/raid.php

Also check that the access levels are set appropriately with the !commands interface.
The only problem that can't be solved by adding another wrapper is having too many wrappers.

Offline Ebag333

  • Contributor
  • *******
  • Posts: 134
  • Karma: +0/-0
Re: Raidbot: reward points, raid lock, raid check
« Reply #2 on: September 14, 2007, 05:05:33 pm »
2 and 3 should happen now, with the current raid plugin.

I'm redoing them, however.  :)

As for 1, I'm not sure what exactly you're looking for (since it seems that everyone wants to do points differently).  I'm planning on creating a points module down the road, however. :)

Offline Pablo

  • BeBot Rookie
  • *
  • Posts: 13
  • Karma: +0/-0
Revealed the mistery
« Reply #3 on: September 14, 2007, 09:46:04 pm »
After re-installed all and rechecked the help I've found the arcane problem, it is the !help raid informations that not shows the commands but they are there and they works when you know the commands at memory!

This is what is displayed at the !help raid

 ::::: HELP ON RAID :::::

Module to manage and announce raids.

 !raid start - Starts a raid.
 !raid end - Ends a raid.
 !raid join - Joins the on-going raid.
 !raid leave - Leaves the on-going raid.
 !raid kick <name> - Kicks player <name> from the current raid.

NOTES:


So it works, it is "only" a missing of text about the commands inside the !help raid file.  ;)
Good to know in future for the others.



About the Award point system, I still have to understand if it is possible to assign points at multiple players/raiders that joined the raid, example:
!award 5 (and it assigns 5 points at all the raiders that joined the raid)

From the file Points.php I see only the single target to assign points (!points add <name> <points>), so that is the sense of the module request. I hope it is more understandeable now and thank you very much all again from an humble tester.
« Last Edit: September 14, 2007, 10:56:21 pm by Pablo »

Offline Ebag333

  • Contributor
  • *******
  • Posts: 134
  • Karma: +0/-0
Re: Raidbot: reward points, raid lock, raid check
« Reply #4 on: September 15, 2007, 02:28:41 am »
Try grabbing the trunk Raid.php

http://svn.shadow-realm.org/index.py/BeBot/trunk/modules/Raid_RAID.php?view=co

I stripped out some stuff that shouldn't have been in there to begin with, and cleaned up up quite a bit.  Has more options that I think yours does too.

It might still have issues, works fine for me but it's bleeding edge so no promises. :)

Offline taconis

  • BeBot User
  • **
  • Posts: 34
  • Karma: +0/-0
Re: Raidbot: reward points, raid lock, raid check
« Reply #5 on: September 18, 2007, 01:32:50 am »
When you grab the new raid_RAID.php file from the trunk, it works wonders if you save it as \modules\raid.php (replacing the main raid.php file).  I tested it on BeBot 0.4.1 using both PHP 4 and 5, and 3 different MySQL versions.

Note:  !raid check does not check the zone for active raiders, it just checks to see who has joined the raid.  It would be better if this was by zone.

There is one request though, in regards to raid.php... Please allow a setting to have the !raid join to return either in pg or in tell (configurable).



..............

Requests for points.php:

- add in the command !points all # (to allow rl's to add points)

This will allow RL's to add block points to all active individuals if followed after someone running a !raid check command (see above).

All points commands should default to RL level for security purposes.

- remove !points to check how many points you have
- add in !account command to check the points you have

... double check modifications with new raid.php and bid.php

I'm installing the latest bid.php to test with the new raid.php.  Hopefully I will be able to reply soon with good news.

Offline Ebag333

  • Contributor
  • *******
  • Posts: 134
  • Karma: +0/-0
Re: Raidbot: reward points, raid lock, raid check
« Reply #6 on: September 18, 2007, 02:11:36 am »
When you grab the new raid_RAID.php file from the trunk, it works wonders if you save it as \modules\raid.php (replacing the main raid.php file).  I tested it on BeBot 0.4.1 using both PHP 4 and 5, and 3 different MySQL versions.

Only difference between naming it raid_RAID.php and raid.php is that if you're bot is setup as an org bot (in bot.conf) then it'll load the raid module.


Note:  !raid check does not check the zone for active raiders, it just checks to see who has joined the raid.  It would be better if this was by zone.

I'm not sure what you mean by this.

Quote
:::: People in the raid ::::

[link]Check all raid members[/link]

Ebagmp [Kick]

Basically you click "Check all raid members" and it does an /assist on everyone in the raid.

If you don't have this, grab the trunk version again.


There is one request though, in regards to raid.php... Please allow a setting to have the !raid join to return either in pg or in tell (configurable).

Fair enough, I'll add that. :)



Requests for points.php:

Someone (*cough*) needs to write a new points module.  :)

Offline sqplus99

  • BeBot Rookie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: Raidbot: reward points, raid lock, raid check
« Reply #7 on: September 20, 2007, 01:04:20 pm »
points award is something i've been trying to figure out also.. so far i've had no luck.

i've tried a few things but as yet havent got any good results.
Code: [Select]
/* Award Points */
function award_points($name, $num)
{
if ($this -> bot -> security -> check_access($name, "superadmin"))
{
if (!is_numeric($num))
{
$this -> bot -> send_tell ($name, "$num is not a valid points value.");
return;
}
else
{
$this -> bot -> db -> query("UPDATE #___raid_points SET points = points + " . ($num * 10) .
" WHERE raiding = 1");
$this -> bot -> send_pgroup("<font color=#ffff00>$name</font> added <font color=#ffff00>$num</font> raidpoints to all active raiders.");
$this -> bot -> send_tell($name, "You added <font color=#ffff00>$num</font> raidpoints to all active raiders.");
return;
}
}
else
{
$this -> bot -> send_tell($name, "You must be a superadmin to do this");
return;
}
}

i was guessing something like that might work, with something like this
Code: [Select]
else if (preg_match("/^" . $this -> bot -> commpre . "points award ([0-9]+)$/i", $info))
$this -> award_points($name, $info[1]);

being used along with it.

i was aiming for !points award <number of points>, then that number being added to all the active raiders.

any help ??

SQ

Offline Wont

  • BeBot Rookie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: Raidbot: reward points, raid lock, raid check
« Reply #8 on: October 03, 2007, 10:19:14 pm »
Bump for point awarding, to every1 in the raid with 1 command.
Wtb that module too.

Offline Pharexys

  • BeBot Apprentice
  • ***
  • Posts: 117
  • Karma: +0/-0
Re: Raidbot: reward points, raid lock, raid check
« Reply #9 on: October 11, 2007, 03:11:55 pm »
I've edited it a bit, didnt tested much, but i see it works. Let me know if uget in trouble.

New Command added:
[tell] !raid reward <points> - Reward <points> to all raiders.

Offline Pablo

  • BeBot Rookie
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Raidbot: reward points, raid lock, raid check
« Reply #10 on: December 02, 2007, 03:01:13 am »
Great great job Pharexys! Thank you! :D

It will be wonderful to have !raid lock too and !raid check written inside the help file.

!raid lock
Locks at the members to !raid join (used when it's too late to join raid)

!raid check (this command just exists, need only to be written inside the help file and eventually expanded with a command to check all raiders in one shot instead one by one. It works with an /assist check about I've understood)
It is used to check the members close the raid leader (vicinity, same zone), to check who really is at the raid and to kick from the raid who isn't there.

And so Bebot will be ready to be a raid bot that works too!  ;)

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Raidbot: reward points, raid lock, raid check
« Reply #11 on: December 02, 2007, 05:18:41 am »
Done
Added Help for !raid lock/unlock
Added Help for !raid check
Added Check all

Offline Pablo

  • BeBot Rookie
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Raidbot: reward points, raid lock, raid check
« Reply #12 on: December 03, 2007, 09:28:11 pm »
Great Temar, quick, wonderful and nice Job!
I've tested it, and it works typing in bot channel too now!

The !raid check [all] works but works without to show the name of the absent raider. It will be great if the check will give as result a response message with the list of the absent raid members.
Without that, still need to check everyone, one by one, to understand who isn't at the raid.

Thank you, thank you a ton in advance.

Offline Temar

  • Contributor
  • *******
  • Posts: 1140
  • Karma: +0/-0
    • AoFiles
Re: Raidbot: reward points, raid lock, raid check
« Reply #13 on: December 04, 2007, 04:21:13 am »
im not sure what your problem is,
as /assist will output a message as to if there are there or not and thats how u know
it will say somit like - cannot find >name<

Offline Pablo

  • BeBot Rookie
  • *
  • Posts: 13
  • Karma: +0/-0
Re: Raidbot: reward points, raid lock, raid check
« Reply #14 on: December 07, 2007, 09:55:37 pm »
I've checked/tested it dual logged and it shows only "Can't assist yourself" as response.  :-\
It is very very strange I know... I tried zoning too, checked the manual /assist name command, and checked my chat configuration, all works right here...

So !raid check still not shows the message: Can’t find target >name<.
It is the same for the single check too, not only "check all".

P.S. Maybe it not works for blank spaces inside the /assist command of the Raid.php code.
« Last Edit: December 07, 2007, 09:59:13 pm by Pablo »

 

* 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: 687
  • 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