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

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

Author Topic: Custom modules  (Read 40642 times)

0 Members and 3 Guests are viewing this topic.

Offline craized

  • Contributor
  • *******
  • Posts: 165
  • Karma: +0/-0
    • http://www.craized.net
Custom modules
« on: January 16, 2005, 01:31:09 am »
I didn't know where to put these, but I figured they would be appreciated.
If anyone knows what they're doing and wants to clean them up, please do so and let me know, so I can change them on my bot. So far this has been an awesome bot, thank you for your effort.
Leader Chat Echo Module
A module to echo whatever an appointed raid leader says in ugly noticeable colors.
Timer Module
A countdown timer used for waiting out monster spawn times, or mob resets.
Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]


Offline craized

  • Contributor
  • *******
  • Posts: 165
  • Karma: +0/-0
    • http://www.craized.net
Custom modules
« Reply #1 on: January 18, 2005, 09:32:52 am »
Notify Module
If you're running a raid bot, there is no notify when people come online, so if you want a players whois info to be displayed when they join the privategroup, this is for you.

EDIT: Thank you for the correction. I'm hoping to get a teams module up, but I'm terrible with Object Oriented Programming, so I'm stuck.
Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]


Offline Sputnik

  • BeBot Rookie
  • *
  • Posts: 14
  • Karma: +0/-0
Custom modules
« Reply #2 on: January 25, 2005, 06:50:41 am »
http://www.craized.net/junk/bebot/modules/Notify.php <---this link is wrong

It should be

http://www.craized.net/junk/bebot/modules/Notify.zip

Just letting ya know craized. Great modules btw.

Offline craized

  • Contributor
  • *******
  • Posts: 165
  • Karma: +0/-0
    • http://www.craized.net
Custom modules
« Reply #3 on: January 25, 2005, 08:19:21 am »
The link is edited, thank you Sputnik. I keep finding nasty bugs in my modules, especially the timer. The newest versions are bug free as far as I know. If you find bugs, post them here, or send me an e-mail at [email protected]

Thank you for your support.
Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]


Offline craized

  • Contributor
  • *******
  • Posts: 165
  • Karma: +0/-0
    • http://www.craized.net
Custom modules
« Reply #4 on: January 26, 2005, 09:57:46 am »
Changed the Timer Module so now in order to set the timer you use !timer <time>, and it now echos
'<player> your timer has gone off.'
rather than just beeping. Also, only the player who set the timer can reset the timer. I'm hoping to allow the raid leader from my Lead Echo Module to clear timers as well, but I'm having trouble communicating between classes.
Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]


Offline Blondengy

  • BeBot Creator and Founder
  • BeBot Hero
  • ******
  • Posts: 51
  • Karma: +0/-0
Custom modules
« Reply #5 on: January 26, 2005, 10:54:17 am »
Communications between classes will be made a lot easier with the next major updated of the bot.

Quick example on the work-around way you have to do it atm:
You got two classes:
Class A
Class B

Class A is called on a tell with the command !a ($commands["tell"]["a"])
It has a function called "doSomething($var1, $var2)" which you wanna call from Class B

Now in Class B do:
$this -> bot -> commands["tell"]["a"] -> doSomething($somevar, $someothervar);

Offline craized

  • Contributor
  • *******
  • Posts: 165
  • Karma: +0/-0
    • http://www.craized.net
Custom modules
« Reply #6 on: January 26, 2005, 11:14:45 am »
Thanks for the lovely workaround, now admins and timer creators can reset the timer. I'm getting tired of writing out the link, so just use a different one to my Timer Module.
Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]


Offline craized

  • Contributor
  • *******
  • Posts: 165
  • Karma: +0/-0
    • http://www.craized.net
Custom modules
« Reply #7 on: January 28, 2005, 11:57:32 am »
Teams Module!
I finished it! I'm very excited, because it was a terrible pain for me. I've got a lot of redundant code, and would love for someone to help me clean it up. But for now, it works. It acts almost exactly as raidbots such as mordnet etc. So enjoy!
Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]


Offline craized

  • Contributor
  • *******
  • Posts: 165
  • Karma: +0/-0
    • http://www.craized.net
Custom modules
« Reply #8 on: February 02, 2005, 03:47:41 am »
MOTD module here, spams org chat every <delay> for <duration>.

MOTD Module
Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]


Offline Lal

  • BeBot User
  • **
  • Posts: 53
  • Karma: +0/-0
Custom modules
« Reply #9 on: March 04, 2005, 06:30:04 pm »
Teams module bug:
                     foreach($this -> team as $team1=>$spo1t) {


has to be

                     foreach($this -> team as $team1=>$spot1) {

or something... but still its no working, only can join team 1, not 2,3,4,5,6,7,8,9
[205/12][Lalsoldier][RK2]

[190/5][Laldoc][RK2]

[195/10][Lalnt][RK2]

Offline craized

  • Contributor
  • *******
  • Posts: 165
  • Karma: +0/-0
    • http://www.craized.net
Custom modules
« Reply #10 on: March 07, 2005, 01:04:18 pm »
I had it set up so that there are only enough teams for the people in the bot. If there are less than 7 people, 1 team is available. Less than 25, 4 teams are available etc.
Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]


Offline cybershead

  • BeBot Rookie
  • *
  • Posts: 7
  • Karma: +0/-0
Cool
« Reply #11 on: March 07, 2005, 09:32:33 pm »
I find it cool but could you do so Admin can do in tells to bot and mayb
 !showmeteams command would open a text window like when you do
 !callers so you can see what teams you have been assined too,,I did try to fiddle around with the code but i dont know enough about it yet :)

Offline Lal

  • BeBot User
  • **
  • Posts: 53
  • Karma: +0/-0
Custom modules
« Reply #12 on: March 07, 2005, 10:21:38 pm »
Quote from: "craized"
I had it set up so that there are only enough teams for the people in the bot. If there are less than 7 people, 1 team is available. Less than 25, 4 teams are available etc.


Any way to NOT count the members in it, since some teams have to get balanced, ie: 2 and 4 or something

Like making it count howmany teams have members and then make sure there are always 3 free other teams
[205/12][Lalsoldier][RK2]

[190/5][Laldoc][RK2]

[195/10][Lalnt][RK2]

Offline craized

  • Contributor
  • *******
  • Posts: 165
  • Karma: +0/-0
    • http://www.craized.net
Custom modules
« Reply #13 on: March 11, 2005, 12:23:36 pm »
Teams Module
New and improved. Added two new commands,
!teams num auto
!teams num <number>
'num auto' is the default setting, and it acts the way I originally planned the teams. num <number> allows an administrator or raid leader to specify the number of teams available. I hope this caters to everyones needs.
Trailin [213/14][ADVENTURER][RK2]
Bigburtha [216/17][NT][RK2][FROZEN]
Abeham [199/7][TRADER][RK2][FROZEN]


Offline Lal

  • BeBot User
  • **
  • Posts: 53
  • Karma: +0/-0
Custom modules
« Reply #14 on: March 11, 2005, 06:32:47 pm »
cool, thanks =)
[205/12][Lalsoldier][RK2]

[190/5][Laldoc][RK2]

[195/10][Lalnt][RK2]

 

* Recent Posts
0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 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: 286
  • 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