IPB

Welcome Guest ( Log In | Register )

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 
Reply to this topicStart new topic
> HostBot List Script, This one is a little different!
DysfunctionaI
post Sep 16 2009, 11:16 PM
Post #1


Rookie
*

Group: Members
Posts: 2
Joined: 19-October 06
Member No.: 10,544



Ok, so I looked at many other hostbot plugins but I need one that is a little different.

The command would be !game

The bot would have the names of 4 different hostbots:
Hostbot1
Hostbot2
Hostbot3
Hostbot4

After someone types !game, the bot would /whereis Hostbot1

If Hostbot1 is in a game, then say the name of the game Hostbot1 is in, and that's it.

BUT, if Hostbot1 is either in a channel or not logged on, then do /whereis Hostbot2

The pattern follows, going down a list of 4 bots to see which one is hosting, starting with Hostbot1. So if Hostbot1 and Hostbot2 are not hosting a game but Hostbot3 is, then when someone types !game the bot would respond with the gamename that Hostbot3 is in.

If all four bots are either in a channel or not logged on, then the bot would say "No games are being hosted"

Thank you to whoever considers this and I appreciate all posts.




Also, if someone could maybe outline a basic structure of how to go about this code with the functions for everything, that would also be extremely helpful; as I could probably piece it together.


Maybe like just the code for doing /who is Hostbot1 when someone types !game and then saying the game that it is in.

I might be able to do it from there. Thanks again.

This post has been edited by DysfunctionaI: Sep 16 2009, 11:17 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
TheDraperyFalls
post Sep 17 2009, 05:28 AM
Post #2


Jr. Member
**

Group: Members
Posts: 16
Joined: 25-July 09
Member No.: 52,822



QUOTE(DysfunctionaI @ Sep 17 2009, 07:16 AM) *

Ok, so I looked at many other hostbot plugins but I need one that is a little different.

The command would be !game

The bot would have the names of 4 different hostbots:
Hostbot1
Hostbot2
Hostbot3
Hostbot4

After someone types !game, the bot would /whereis Hostbot1

If Hostbot1 is in a game, then say the name of the game Hostbot1 is in, and that's it.

BUT, if Hostbot1 is either in a channel or not logged on, then do /whereis Hostbot2

The pattern follows, going down a list of 4 bots to see which one is hosting, starting with Hostbot1. So if Hostbot1 and Hostbot2 are not hosting a game but Hostbot3 is, then when someone types !game the bot would respond with the gamename that Hostbot3 is in.

If all four bots are either in a channel or not logged on, then the bot would say "No games are being hosted"

Thank you to whoever considers this and I appreciate all posts.




Also, if someone could maybe outline a basic structure of how to go about this code with the functions for everything, that would also be extremely helpful; as I could probably piece it together.


Maybe like just the code for doing /who is Hostbot1 when someone types !game and then saying the game that it is in.

I might be able to do it from there. Thanks again.

http://www.stealthbot.net/board/index.php?showtopic=40691

Or search on the forums for either iHost or ProHost.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
DysfunctionaI
post Sep 18 2009, 02:31 AM
Post #3


Rookie
*

Group: Members
Posts: 2
Joined: 19-October 06
Member No.: 10,544



I obviously looked at the above mentioned plugins and it's obvious you haven't taken a look at what I've said. All those plugins whisper !getgames to hostbots that are mutual friends with them. I can't imagine it is that hard, I just don't know how to write code.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
The-Black-Ninja
post Sep 19 2009, 09:15 AM
Post #4


Pure Sex
********

Group: Moderators
Posts: 7,756
Joined: 13-August 06
Member No.: 7,372



QUOTE(DysfunctionaI @ Sep 18 2009, 04:31 AM) *
I can't imagine it is that hard, I just don't know how to write code.
It is that hard, which is why no one's taken the request yet.


--------------------
IPB Image

-My Plugins :: Thanks Pyro :)
IPB ImageIPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 12th December 2019 - 08:49 AM
Skin by Andrea
Website Legal Information | Hosted by LunarPages