Help - Search - Members - Calendar
Full Version: ghlGhostHostList
StealthBot.net > StealthBot > Scripting and Plugins
Pages: 1, 2
Call
Ghost Host List: v2.8

Author: Call
Explaination: Keeps track of your ghost bots and display the new games they hosted.
Configuration: All listed inside the code, very easy to configure.
BotVersion Required: 2.6R3+
Quick Download: Click to view attachment

Update News: Will be using old data until it receives new data.

CODE
'ghl
'2.8
'&Ghost Host List:Call:Keeps track of your ghost bots and display the new games they hosted.
'&games - dispaly current games(can be changed and disabled)
'&40691
'&Please read the configurations comments and configure the plugin for your needs.:Please report all bugs/errors found.:Please suggest all you think would be great for the plugin on the plugin home topic.:All ghost bots must be on the stealthbot's friend list or else this will not work.
'Assisted by: None

'// Ghost Host List 2 . 8
private const vinterval = 20 'Timer interval(seconds) for whispers to be sent
private const vghost = "username1|username2" 'Ghost's username seperate with |
private const vghostcommand = ".getgames" 'Command to whisper
private const vdisplay = "%game(%used/%size)" 'New game display
private const vdisplay2 = "No games available." 'No new games
private const vtimerdisplay = 0 'Use timer to display new games
private const vtimerinterval = 20 'Time btw new game lists
private const vcommanddisplay = 1 'Use command to display new games
private const vcommandaccess = -1 'Access required to use display command
private const vcommand = "games" 'Command to display new games
private const vcommandspam = 5 'Anti-Spam seconds before command can be used again

'// Game [%game : %username : %used/%size : %minutes] is in the lobby and there are %used2/%size2 other games in progress.
'// %spots - gives you the number of spots that is open in the game can be used in vdisplay.

public ghlL, ghlA, ghlO, ghlB
ghlL = vdisplay2
ghlO = ""
ghlA = false
ghlB = false

sub ghl_event_load()
TimerInterval "ghl", "ghost", int(vinterval)
TimerInterval "ghl", "list", int(vtimerinterval)
TimerInterval "ghl", "spam", int(vcommandspam)
TimerEnabled "ghl", "ghost", true
TimerEnabled "ghl", "spam", false
if int(vtimerdisplay) = 1 then TimerEnabled "ghl", "list", true else TimerEnabled "ghl", "list", false
end sub

sub ghl_ghost_timer()
dim TempCount : TempCount = 0
for x = 0 to UBound(Split(vghost, "|"))
if GetPositionByName(Split(vghost, "|")(x)) > 0 then
TempCount = TempCount + 1
end if
next
ghlO = ghlL
ghlL = vdisplay2
ghlB = true
if Int(UBound(Split(vghost, "|")) + 1) = Int(TempCount) then exit sub
AddQ "/f m " & vghostcommand
end sub

sub ghl_list_timer()
dim Games
if not ghlL = vdisplay2 then
Games = "Games: " & left(ghlL, len(ghlL) - 2)
else
Games = vdisplay2
end if
If ghlB and Not ghlO = vdisplay2 Then Games = "Games: " & left(ghlO, len(ghlO) - 2)
dsp 1, Games, username, vbRed
end sub

sub ghl_spam_timer()
ghlA = false
TimerEnabled "ghl", "spam", false
end sub

sub ghl_event_whisperfromuser(username, flags, message)
dim TempBoolean : TempBoolean = false
For x = LBound(Split(vghost, "|")) to UBound(Split(vghost, "|"))
if LCase(Username) = LCase(Split(vghost, "|")(x)) then
TempBoolean = true
exit for
end if
next
if not TempBoolean then exit sub
ghlB = false
if instr(lcase(message), "is in the lobby") then
dim TempString
TempSplit1 = Replace(message, "Game [", "")
TempSplit = Split(TempSplit1, "] is")(0)
Game = Split(TempSplit, " : ")(0)
Username = Split(TempSplit, " : ")(1)
Minutes = Split(TempSplit, " : ")(3)
TempSplit = Split(TempSplit, " : ")(2)
Used = Split(TempSplit, "/")(0)
Size = Split(TempSplit, "/")(1)
Spots = Int(Int(Size) - Int(Used))
TempSplit1 = split(message, " in the lobby and there are ")(1)
TempSplit = split(TempSplit1, " other games in progress.")(0)
Used2 = Split(TempSplit, "/")(0)
Size2 = Split(TempSplit, "/")(1)
TempString = vdisplay
TempString = replace(TempString, "%game", Game)
TempString = replace(TempString, "%username", Username)
TempString = replace(TempString, "%used2", Used2)
TempString = replace(TempString, "%size2", Size2)
TempString = replace(TempString, "%used", Used)
TempString = replace(TempString, "%size", Size)
TempString = replace(TempString, "%minutes", Minutes)
TempString = replace(TempString, "%spots", Spots)
if InStr(ghlO, Game) <= 0 then dsp 1, "New Game: " & TempString, botvars.username, vbgreen
if ghlL = vdisplay2 then ghlL = TempString & ", " else ghlL = ghlL & TempString & ", "
end if
end sub

sub ghl_event_usertalk(username, flags, message, ping)
if ghlA then exit sub
if int(vcommanddisplay) = 0 then exit sub
getdbentry username, access, flags
if access < vcommandaccess then exit sub
if lcase(message) = lcase(BotVars.Trigger & vcommand) then
ghlA = true
dim Games
if not ghlL = vdisplay2 then
Games = "Games: " & left(ghlL, len(ghlL) - 2)
else
Games = vdisplay2
end if
If ghlB and Not ghlO = vdisplay2 Then Games = "Games: " & left(ghlO, len(ghlO) - 2)
dsp 1, Games, username, vbRed
TimerEnabled "ghl", "spam", true
end if
end sub
Instinct121
Looks nice. To clarify, it's only intended use is to track games hosted by multiple GHost bots, correct?
charles_scott
I think this new version can be used to track one bot, or multiples, I know the old one could only do 1 bot at a time.

Will this work correctly for the beta or?

EDIT: Seems to work, but I noticed on this version if uses the /f msg instead of wispering the bot... :-\


I think there is a bug, it shouldn't keep doing the /f msg over and over after the bot joins the channel again right?

QUOTE
[07:23:26 PM] <To your friends> !getgames
[07:23:27 PM] <From TwGB[Host]> Game [Island Troll Tribes TwGB #54 : c0rr0sive : 9/12 : 8m] is in the lobby and there are 2/3 other games in progress.
[07:23:41 PM] <To your friends> !getgames
[07:23:41 PM] <From TwGB[Host]> Game [Island Troll Tribes TwGB #54 : c0rr0sive : 9/12 : 9m] is in the lobby and there are 2/3 other games in progress.
[07:23:56 PM] <To your friends> !getgames
[07:23:56 PM] <From TwGB[Host]> Game [Island Troll Tribes TwGB #54 : c0rr0sive : 9/12 : 9m] is in the lobby and there are 2/3 other games in progress.
[07:24:11 PM] <To your friends> !getgames
[07:24:11 PM] <From TwGB[Host]> Game [Island Troll Tribes TwGB #54 : c0rr0sive : 9/12 : 9m] is in the lobby and there are 2/3 other games in progress.
[07:24:26 PM] <To your friends> !getgames
[07:24:26 PM] <From TwGB[Host]> There is no game in the lobby and there are 3/3 other games in progress.
[07:24:41 PM] <To your friends> !getgames
[07:24:41 PM] <From TwGB[Host]> There is no game in the lobby and there are 3/3 other games in progress.
[07:24:56 PM] <To your friends> !getgames
[07:24:56 PM] <From TwGB[Host]> There is no game in the lobby and there are 3/3 other games in progress.
[07:25:11 PM] <To your friends> !getgames
[07:25:12 PM] <From TwGB[Host]> There is no game in the lobby and there are 3/3 other games in progress.
[07:25:27 PM] <To your friends> !getgames
[07:25:27 PM] <From TwGB[Host]> There is no game in the lobby and there are 3/3 other games in progress.
[07:25:42 PM] <To your friends> !getgames
[07:25:42 PM] <From TwGB[Host]> There is no game in the lobby and there are 3/3 other games in progress.
[07:25:57 PM] <To your friends> !getgames
[07:25:57 PM] <From TwGB[Host]> There is no game in the lobby and there are 3/3 other games in progress.
[07:26:12 PM] <To your friends> !getgames
[07:26:12 PM] <From TwGB[Host]> There is no game in the lobby and there are 3/3 other games in progress.





EDIT: Ok, after quite a bit of testing, it's way to buggy, half the time when .games is performed it won't list the games that are open, and the other half the time it does, another bug, it keeps doing /f msg non stop, even when all bots are in channel, possible cause is one bot isn't talking to it yet and it goes into a loop till this bot does.

Another glitch, on the [private const vdisplay2 = "No games available."] if I change it to [private const vdisplay2 = "No games available, please wait till the bot announces a new one."] it will cut off most of the wording.

So back to 0.6 for me....
Call
Thanks charles_scott will be looking at these problems and will be adding some futures for example if all bots is in channel it wont "/f m"

Updated Thanks to phix.
thevoden
I am using your older gHL since I'm completely satisfied with it (and i dont have multiple bots).

I was wondering if you can explain the

vinterval
vtimerinterval

and how it works

I set vtimerdisplay=1
vtimerinverval = 20
vtimerinverval = 20


Then it displays the message twice example:

Bot: <rdlc30>
Bot: <rdlc30>

i set vtimerinterval to 0 and kept vdisplay = 1 and it all works now. Why would one need to use vtimerinterval and vinterval?
Call
QUOTE(thevoden @ Jun 19 2009, 03:33 PM) *

I am using your older gHL since I'm completely satisfied with it (and i dont have multiple bots).

I was wondering if you can explain the

vinterval
vtimerinterval

and how it works

I set vtimerdisplay=1
vtimerinverval = 20
vtimerinverval = 20


Then it displays the message twice example:

Bot: <rdlc30>
Bot: <rdlc30>

i set vtimerinterval to 0 and kept vdisplay = 1 and it all works now. Why would one need to use vtimerinterval and vinterval?


its a little bug and the new version should work like the old just a bit better smile.gif
charles_scott
Thanks, it seems to work MUCH MUCH better now, ran into a RANDOM glitch, and I can't replicate it for the sake of my life... That and for some reason my Beta bot stoped logging text again..

Anyways, the glitch went similar to this, and I can't replicate it, so something else may have caused it.


EDIT: NVM, finaly someone managed to get it to glitch and do it all over again... Only way to fix is to restart bot...

QUOTE


[01:07:01 PM] <Skineemikee> .games
[01:07:01 PM] <Jus_a_ICe_Trol> no wai i was outrunnin that
[01:07:02 PM] <arankaruvaizard> island troll tribes!-
[01:07:07 PM] -- arankaruvaizard has left the channel.
[01:07:13 PM] <Skineemikee> .games
[01:07:14 PM] <C0RR0SIVE[TWGB]> Games: Island Troll Tribes TwGB #7(12/12/6m)
[01:07:19 PM] <C0RR0SIVE[TWGB]> Games: Games: Island Troll Tribes TwGB #7(12/12/6
[01:07:20 PM] -- Jus_a_ICe_Trol has left the channel.
[01:07:24 PM] -- Jus_a_ICe_Trol [47ms] has joined the channel using WarCraft III: The Frozen Throne (Level: 17, icon tier Undead, destroyer icon, in clan TwGB).
[01:07:34 PM] -- Jus_a_ICe_Trol has left the channel.
[01:08:33 PM] -- Skineemikee has left the channel.
[01:09:08 PM] -- SpankDaHobo [94ms] has joined the channel using WarCraft III: The Frozen Throne (Level: 0, icon tier Random, peon icon, in clan TwGB).
[01:11:39 PM] -- chubbthehippo [125ms] has joined the channel using WarCraft III: The Frozen Throne (Level: 1, icon tier Random, peon icon).
[01:11:45 PM] <chubbthehippo> .games
[01:11:46 PM] <C0RR0SIVE[TWGB]> Games: Games: Games: Island Troll Tribes TwGB #7(12/12
[01:12:13 PM] <chubbthehippo> .games
[01:12:14 PM] <C0RR0SIVE[TWGB]> Games: Games: Games: Games: Island Troll Tribes TwGB #7(12/
[01:12:16 PM] <chubbthehippo> .games
[01:12:19 PM] <chubbthehippo> .games
[01:12:22 PM] <chubbthehippo> .games
[01:12:51 PM] <C0RR0SIVE[TWGB]> lol
[01:13:07 PM] <C0RR0SIVE[TWGB]> it glitched again smile.gif
[01:13:12 PM] <BLisS-DarKEyeS> =\
[01:13:13 PM] <BLisS-DarKEyeS> lol
[01:13:21 PM] <C0RR0SIVE[TWGB]> bliss type .games
[01:13:26 PM] <BLisS-DarKEyeS> .games
[01:13:26 PM] <C0RR0SIVE[TWGB]> Games: Games: Games: Games: Games: Island Troll Tribes TwGB #7(1
[01:13:30 PM] <BLisS-DarKEyeS> nah its good
[01:13:31 PM] <C0RR0SIVE[TWGB]> yep it glitched
[01:13:34 PM] <BLisS-DarKEyeS> did it?
[01:13:36 PM] <BLisS-DarKEyeS> oh
[01:13:38 PM] <BLisS-DarKEyeS> haha
[01:13:40 PM] <C0RR0SIVE[TWGB]> its saying games: games: games:
[01:13:41 PM] <C0RR0SIVE[TWGB]> lol
[01:13:44 PM] <BLisS-DarKEyeS> chubb was spaming it
[01:13:45 PM] <BLisS-DarKEyeS> rofl
[01:13:48 PM] <BLisS-DarKEyeS> probly why
[01:13:50 PM] <BLisS-DarKEyeS> hahah
[01:13:51 PM] <C0RR0SIVE[TWGB]> nope
[01:13:57 PM] <C0RR0SIVE[TWGB]> well yea
[01:13:58 PM] <C0RR0SIVE[TWGB]> but its good
[01:14:06 PM] <C0RR0SIVE[TWGB]> as i was trying to replicate the freaking glitch....
Ribose
Call:
CODE
if not ghlL = vdisplay2 then ghlL = "Games: " & left(ghlL, len(ghlL) - 2)
This global variable is being modified every time it is displayed to be prefixed and trimmed at the end. To avoid this, use a private variable...
vjain
I'm probably doing something really stupid, but I can't seem to get this plugin working properly. The plugin IS imported (/phelp ghl works), but .games does not (. being my trigger). It gives no output, the bot doesn't do anything inside itself (doesn't whisper, etc).

CODE

The only thing I've changed in the bot are the following lines:
private const vghost = "V-Bot"                              'Ghost's username seperate with |
private const vghostcommand = "!getgames"                       'Command to whisper
private const vcommand = "games"                           'Command to display new games
Call
QUOTE(vjain @ Jun 20 2009, 04:24 AM) *

I'm probably doing something really stupid, but I can't seem to get this plugin working properly. The plugin IS imported (/phelp ghl works), but .games does not (. being my trigger). It gives no output, the bot doesn't do anything inside itself (doesn't whisper, etc).

CODE

The only thing I've changed in the bot are the following lines:
private const vghost = "V-Bot"                              'Ghost's username seperate with |
private const vghostcommand = "!getgames"                       'Command to whisper
private const vcommand = "games"                           'Command to display new games



do you have the bot on friend list?
vjain
QUOTE(Call @ Jun 20 2009, 02:11 AM) *

QUOTE(vjain @ Jun 20 2009, 04:24 AM) *

I'm probably doing something really stupid, but I can't seem to get this plugin working properly. The plugin IS imported (/phelp ghl works), but .games does not (. being my trigger). It gives no output, the bot doesn't do anything inside itself (doesn't whisper, etc).

CODE

The only thing I've changed in the bot are the following lines:
private const vghost = "V-Bot"                              'Ghost's username seperate with |
private const vghostcommand = "!getgames"                       'Command to whisper
private const vcommand = "games"                           'Command to display new games



do you have the bot on friend list?


Yes, I have it as mutual. I hope that isn't the issue...
charles_scott
Nvm, but the mutual doesn't matter, have you added the stealthbot to the ghost bot userlist? Also I think the stealthbot has to be a Warcraft 3 bot, that way ghost wispers back properly, and it only wispers if the ghostbot isn't in the channel.
Men_Of_Greece
does this topic provide any help on running GHost One hosting bot?
PhiX
QUOTE(Men_Of_Greece @ Jun 20 2009, 09:14 PM) *
does this topic provide any help on running GHost One hosting bot?
No. It's a StealthBot script, nothing more.
charles_scott
Go to codelain.com for help on that.

But I guess a previous bug is back, or has resurfaced in a different manor.

After awhile the script seems to not update when the bots are in the channel, all games will be used, bots in channel, but when someone types .games, it reports that a game is open.

QUOTE
[06:14:22 PM] <c0rr0sive> .games
[06:14:23 PM] <C0RR0SIVE[TWGB]> Games: Island Troll Tribes TwGB #10(9/12/5m)
[06:14:25 PM] <c0rr0sive> .getgames
[06:14:25 PM] <TwGB[Host]> There is no game in the lobby and there are 3/3 other games in progress.
[06:14:28 PM] <c0rr0sive> .games
[06:14:31 PM] <c0rr0sive> .games
[06:14:31 PM] <C0RR0SIVE[TWGB]> Games: Island Troll Tribes TwGB #10(9/12/5m)
Call
it looks like your using something else because it would say send to your friends if your using 2.3

nvm thanks scott i discovered it when it dont sent the update .getgames because all listed bots are in channel it wont update the game list. (Updating to 2.4 soon)Click to view attachment
charles_scott
Ok, I was curious, I am using the 2.7 RC1, I just now noticed it didn't do it, as the Ghost bot said wispered back right as the game had started that no other games were in progress.
Call
QUOTE(charles_scott @ Jun 21 2009, 12:35 AM) *

Ok, I was curious, I am using the 2.7 RC1, I just now noticed it didn't do it, as the Ghost bot said wispered back right as the game had started that no other games were in progress.


tell me if u find any more bugs smile.gif
charles_scott
It still seems to be having issues with updating it self, it sometimes wont report when a game is in lobby, even though it asks ghost and the ghost program returns the game information... It is all very random when this does happen... I wish I could be of more help...
vjain
Reinstalled Stealthbot and now it works.

Thanks for the script!
charles_scott
Hey, Call, after a lot of testing this latest script out, it still seems to have issues after a few hours and games are gone by... Someone can type .games, and there has been a new game open for 5 minutes but it will still state no new games... And vice versa, this happens about every 6-12 hours for me, it seems more dependent on how many games go through in an amount of time.

I have found, reloading the script every few hours seems to fix the issue, so it may not be an issue with the script it self, or it is only something in the 2.7 RC1 that is causing this.
Call
QUOTE(charles_scott @ Jun 26 2009, 06:42 PM) *

Hey, Call, after a lot of testing this latest script out, it still seems to have issues after a few hours and games are gone by... Someone can type .games, and there has been a new game open for 5 minutes but it will still state no new games... And vice versa, this happens about every 6-12 hours for me, it seems more dependent on how many games go through in an amount of time.

I have found, reloading the script every few hours seems to fix the issue, so it may not be an issue with the script it self, or it is only something in the 2.7 RC1 that is causing this.


i have 2.7 rc1 (where i test plugins) because it can give me specific line and not some random error i gotta look up tongue.gif but i cant reproduce this error, i might have some spare time next week to look true the /f m timer smile.gif
charles_scott
Hey, it just happened, its very random at start but gets more consistant later on.

QUOTE

[12:52:21 PM] <From TwGB[Host]> Game [Island Troll Tribes TwGB #3 : : 1/12 : 3m] is in the lobby and there are 2/3 other games in progress.
[12:52:32 PM] -- Gogoaw [32ms] has joined the channel using WarCraft III: The Frozen Throne (Level: 0, icon tier Human, rifleman icon, in clan TwGB).
[12:52:33 PM] <To your friends> .getgames
[12:52:34 PM] -- Skineemikee [109ms] has joined the channel using WarCraft III: The Frozen Throne (Level: 0, icon tier Random, peon icon, in clan TvGB).
[12:52:38 PM] <Gogoaw> .games
[12:52:39 PM] <From TwGB[Host]> Game [Island Troll Tribes TwGB #3 : : 0/12 : 3m] is in the lobby and there are 2/3 other games in progress.
[12:52:39 PM] <C0RR0SIVE[TWGB]> No games available, please wait till TwGB[Host] announces one.
[12:52:48 PM] -- Gogoaw has left the channel.
[12:52:52 PM] <To your friends> .getgames
[12:53:03 PM] <From TwGB[Host]> Game [Island Troll Tribes TwGB #3 : : 3/12 : 4m] is in the lobby and there are 2/3 other games in progress.
[12:53:07 PM] -- Skineemikee has left the channel.
[12:53:12 PM] <c0rr0sive> .games
[12:53:12 PM] <C0RR0SIVE[TWGB]> Games: Island Troll Tribes TwGB #3(3/12/4m)
[12:53:14 PM] <To your friends> .getgames
[12:53:16 PM] <c0rr0sive> lmfao wtf


Also note, the hostbot isn't in the channel
charles_scott
2.6 seems to be working great now that it doesnt get rid of the old game once .getgames is issued again. I will keep an eye for anymore "bugs"

Well, hell, previous bug seems to be back, now that I am running multiple bots, if a bot doesnt reply in time when .getgames is issued from the bot, and someone types .games, it wont list the game...

QUOTE
[10:19:25 PM] <To your friends> !getgames
[10:19:26 PM] <Turpin> .mosttoday
[10:19:26 PM] -- c0rr0sive [31ms] has joined the channel using WarCraft III: The Frozen Throne (Level: 20, icon tier Night Elf, druid of the talon icon, in clan TwGB).
[10:19:26 PM] <C0RR0SIVE[TWGB]> 123 unique users have joined the channel today.
[10:19:27 PM] <c0rr0sive> .games
[10:19:28 PM] <C0RR0SIVE[TWGB]> No games available, please wait till a hostbot announces one.
[10:19:28 PM] <From TwGB[hostbot]> Game [Island Troll Tribes - TwGB #15 : : 9/12 : 49m] is in the lobby and there are 0/20 other games in progress.
[10:19:32 PM] <c0rr0sive> .games
[10:19:33 PM] <C0RR0SIVE[TWGB]> Games: Island Troll Tribes - TwGB #15(9/12/49m)
[10:19:34 PM] <From TwGB[Host]> Game [Island Troll Tribes TwGB #4 : man_lord : 0/12 : 35m] is in the lobby and there are 1/3 other games in progress.
[10:19:38 PM] <c0rr0sive> .games
[10:19:38 PM] <C0RR0SIVE[TWGB]> Games: Island Troll Tribes - TwGB #15(9/12/49m), Island Troll Tribes TwGB #4(0/12/35m)
[10:19:41 PM] <c0rr0sive> lol
[10:19:42 PM] <c0rr0sive> wtf
[10:19:42 PM] -- January has left t
Call
QUOTE(charles_scott @ Jul 9 2009, 03:35 AM) *

2.6 seems to be working great now that it doesnt get rid of the old game once .getgames is issued again. I will keep an eye for anymore "bugs"

Well, hell, previous bug seems to be back, now that I am running multiple bots, if a bot doesnt reply in time when .getgames is issued from the bot, and someone types .games, it wont list the game...

QUOTE
[10:19:25 PM] <To your friends> !getgames
[10:19:26 PM] <Turpin> .mosttoday
[10:19:26 PM] -- c0rr0sive [31ms] has joined the channel using WarCraft III: The Frozen Throne (Level: 20, icon tier Night Elf, druid of the talon icon, in clan TwGB).
[10:19:26 PM] <C0RR0SIVE[TWGB]> 123 unique users have joined the channel today.
[10:19:27 PM] <c0rr0sive> .games
[10:19:28 PM] <C0RR0SIVE[TWGB]> No games available, please wait till a hostbot announces one.
[10:19:28 PM] <From TwGB[hostbot]> Game [Island Troll Tribes - TwGB #15 : : 9/12 : 49m] is in the lobby and there are 0/20 other games in progress.
[10:19:32 PM] <c0rr0sive> .games
[10:19:33 PM] <C0RR0SIVE[TWGB]> Games: Island Troll Tribes - TwGB #15(9/12/49m)
[10:19:34 PM] <From TwGB[Host]> Game [Island Troll Tribes TwGB #4 : man_lord : 0/12 : 35m] is in the lobby and there are 1/3 other games in progress.
[10:19:38 PM] <c0rr0sive> .games
[10:19:38 PM] <C0RR0SIVE[TWGB]> Games: Island Troll Tribes - TwGB #15(9/12/49m), Island Troll Tribes TwGB #4(0/12/35m)
[10:19:41 PM] <c0rr0sive> lol
[10:19:42 PM] <c0rr0sive> wtf
[10:19:42 PM] -- January has left t



will fix this soon -.-
charles_scott
Sorry, I guess it is starting to annoy you a bit?

I guess I am also one of the few that use your script a LOT....
charles_scott
It still seems to be doing it, so I am unsure as to what is going on... I may just use the old script that I had, which is incredibly old...

Is there anyway the script can be done so the bot will re-use the old games it recieved untill it gets an update from the ghostbots?
Call
QUOTE(charles_scott @ Jul 10 2009, 05:24 AM) *

It still seems to be doing it, so I am unsure as to what is going on... I may just use the old script that I had, which is incredibly old...

Is there anyway the script can be done so the bot will re-use the old games it recieved untill it gets an update from the ghostbots?


Have been testing 2.8 and the bug u pointed out have been fixed.
FoxInTheBox
Anyone can help me? I love this plugin but I'd like to make so it prints out in /me text
PhiX
Change all the "dsp 1" to "dsp 2".
Sui(C)ide
QUOTE(PhiX @ Jul 17 2009, 07:36 AM) *

Change all the "dsp 1" to "dsp 2".


He could also change the "1" to "DspId" then define DspId as 2.
That would seem more logical as he could change it a lot easier in future.
Call
QUOTE(PhiX @ Jul 16 2009, 11:36 PM) *

Change all the "dsp 1" to "dsp 2".


dont touch "dsp 3" though.

QUOTE(Sui(C)ide @ Jul 17 2009, 07:41 AM) *

QUOTE(PhiX @ Jul 17 2009, 07:36 AM) *

Change all the "dsp 1" to "dsp 2".


He could also change the "1" to "DspId" then define DspId as 2.
That would seem more logical as he could change it a lot easier in future.


witch will prob come later when i have found more subjects to add.
Sui(C)ide
QUOTE(Call @ Jul 17 2009, 04:03 PM) *

dont touch "dsp 3" though.


Or Dsp 4...
PhiX
QUOTE(Call @ Jul 17 2009, 08:03 AM) *
QUOTE(PhiX @ Jul 16 2009, 11:36 PM) *
Change all the "dsp 1" to "dsp 2".
dont touch "dsp 3" though.
There is no "dsp 3" in your code. You're using AddQ for whispering.

Neither is there a "dsp 4" ...
Sui(C)ide
QUOTE(PhiX @ Jul 17 2009, 07:53 PM) *

QUOTE(Call @ Jul 17 2009, 08:03 AM) *
QUOTE(PhiX @ Jul 16 2009, 11:36 PM) *
Change all the "dsp 1" to "dsp 2".
dont touch "dsp 3" though.
There is no "dsp 3" in your code. You're using AddQ for whispering.

Neither is there a "dsp 4" ...


Then what is this?
CODE

'// - dsp
'// USAGE: dsp DisplayID, Message, Username, Color
'//   DisplayID must be one of the following integer values:
'//     1 = AddQ
'//     2 = Emote
'//     3 = Whisper
'//     4 = AddChat
PhiX
I said in his code. He only uses "dsp 1" in his plugin ...
Call
uhg would it be wrong to ask if a mod could delete, all these useless post about "dsp" and what ever phix and sui talked about <.<
FoxInTheBox
Can you fix so it tells the latest information it have recieved from hostbot till it get new? thanks
Call
QUOTE(Xoriaz @ Jul 19 2009, 08:17 PM) *

Can you fix so it tells the latest information it have recieved from hostbot till it get new? thanks


this has already been done.
FoxInTheBox
Well mine dont :/ Im using your newest, Can it be that it dont because I got 2 I.E One bot host It says that its Hosted and then bot n2 answer to -getgames and it says There is no game and I type .games And it says No games aviable?
Call
Ghost Host List: v2.9

Author: Call
Explaination: Keeps track of your ghost bots and display the new games they hosted.
Configuration: All listed inside the code, very easy to configure.
BotVersion Required: 2.6R3+
Quick Download: Click to view attachment

Update News: Multiple new configurations.

CODE
'ghl
'2.9
'&Ghost Host List:Call:Keeps track of your ghost bots and display the new games they hosted.
'&games - dispaly current games(can be changed and disabled)
'&40691
'&Please read the configurations comments and configure the plugin for your needs.:Please report all bugs/errors found.:Please suggest all you think would be great for the plugin on the plugin home topic.:All ghost bots must be on the stealthbot's friend list or else this will not work.
'Assisted by: None

'//
'// Ghost Host List 2 . 9
private const vinterval = 20 'Timer interval(seconds) for whispers to be sent
private const vghost = "username1|username2" 'Ghost's username seperate with |
private const vghostcommand = ".getgames|-getgames" 'Command to whisper seperate with |
private const vghostformat = 0 '0 = FriendList - 1 = Wisper
private const vdisplayformat = 1 '1 = Normal - 2 = Emote
private const vdisplay = "%game(%used/%size)" 'New game display
private const vdisplay2 = "No games available." 'No new games
private const vtimerdisplay = 0 'Use timer to display new games
private const vtimerinterval = 20 'Time btw new game lists
private const vcommanddisplay = 1 'Use command to display new games
private const vcommandaccess = -1 'Access required to use display command
private const vcommand = "games" 'Command to display new games
private const vcommandspam = 5 'Anti-Spam seconds before command can be used again
'//
'// Game [%game : %username : %used/%size : %minutes] is in the lobby and there are %used2/%size2 other games in progress.
'// %spots - gives you the number of spots that is open in the game can be used in vdisplay.
'//
public ghlL, ghlA, ghlO, ghlB
ghlL = vdisplay2
ghlO = ""
ghlA = false
ghlB = false

sub ghl_event_load()
TimerInterval "ghl", "ghost", int(vinterval)
TimerInterval "ghl", "list", int(vtimerinterval)
TimerInterval "ghl", "spam", int(vcommandspam)
TimerEnabled "ghl", "ghost", true
TimerEnabled "ghl", "spam", false
if int(vtimerdisplay) = 1 then TimerEnabled "ghl", "list", true else TimerEnabled "ghl", "list", false
end sub

sub ghl_ghost_timer()
dim TempCount : TempCount = 0
for x = 0 to UBound(Split(vghost, "|"))
if GetPositionByName(Split(vghost, "|")(x)) > 0 then
TempCount = TempCount + 1
end if
next
ghlO = ghlL
ghlL = vdisplay2
ghlB = true
if Int(UBound(Split(vghost, "|")) + 1) = Int(TempCount) then exit sub
if vghostformat = 0 then
AddQ "/f m " & vghostcommand
else
for x = 0 to UBound(Split(vghost, "|"))
dim TempStr
if UBound(Split(vghost, "|")) = UBound(Split(vghostcommand, "|")) then
TempStr = vghostcommand(x)
else
TempStr = vghostcommand
end if
dsp 3, TempStr, Split(vghost, "|")(x), vbGreen
next
end if
end sub

sub ghl_list_timer()
dim Games
if not ghlL = vdisplay2 then
Games = "Games: " & left(ghlL, len(ghlL) - 2)
else
Games = vdisplay2
end if
If ghlB and Not ghlO = vdisplay2 Then Games = "Games: " & left(ghlO, len(ghlO) - 2)
dsp vdisplayformat, Games, username, vbRed
end sub

sub ghl_spam_timer()
ghlA = false
TimerEnabled "ghl", "spam", false
end sub

sub ghl_event_whisperfromuser(username, flags, message)
dim TempBoolean : TempBoolean = false
For x = LBound(Split(vghost, "|")) to UBound(Split(vghost, "|"))
if LCase(Username) = LCase(Split(vghost, "|")(x)) then
TempBoolean = true
exit for
end if
next
if not TempBoolean then exit sub
ghlB = false
if instr(lcase(message), "is in the lobby") then
dim TempString
TempSplit1 = Replace(message, "Game [", "")
TempSplit = Split(TempSplit1, "] is")(0)
Game = Split(TempSplit, " : ")(0)
Username = Split(TempSplit, " : ")(1)
Minutes = Split(TempSplit, " : ")(3)
TempSplit = Split(TempSplit, " : ")(2)
Used = Split(TempSplit, "/")(0)
Size = Split(TempSplit, "/")(1)
Spots = Int(Int(Size) - Int(Used))
TempSplit1 = split(message, " in the lobby and there are ")(1)
TempSplit = split(TempSplit1, " other games in progress.")(0)
Used2 = Split(TempSplit, "/")(0)
Size2 = Split(TempSplit, "/")(1)
TempString = vdisplay
TempString = replace(TempString, "%game", Game)
TempString = replace(TempString, "%username", Username)
TempString = replace(TempString, "%used2", Used2)
TempString = replace(TempString, "%size2", Size2)
TempString = replace(TempString, "%used", Used)
TempString = replace(TempString, "%size", Size)
TempString = replace(TempString, "%minutes", Minutes)
TempString = replace(TempString, "%spots", Spots)
if InStr(ghlO, Game) <= 0 then dsp vdisplayformat, "New Game: " & TempString, botvars.username, vbgreen
if ghlL = vdisplay2 then ghlL = TempString & ", " else ghlL = ghlL & TempString & ", "
end if
end sub

sub ghl_event_usertalk(username, flags, message, ping)
if ghlA then exit sub
if int(vcommanddisplay) = 0 then exit sub
getdbentry username, access, flags
if access < vcommandaccess then exit sub
if lcase(message) = lcase(BotVars.Trigger & vcommand) then
if vcommandspam > 0 then
ghlA = true
TimerEnabled "ghl", "spam", true
end if
dim Games
if not ghlL = vdisplay2 then
Games = "Games: " & left(ghlL, len(ghlL) - 2)
else
Games = vdisplay2
end if
If ghlB and Not ghlO = vdisplay2 Then Games = "Games: " & left(ghlO, len(ghlO) - 2)
dsp vdisplayformat, Games, username, vbRed
end if
end sub
Call
Ghost Host List: v3.0

Author: Call
Explaination: Keeps track of your ghost bots and display the new games they hosted.
Configuration: All listed inside the code, very easy to configure.
BotVersion Required: 2.6R3+
Quick Download: Click to view attachment

Update News: Multiple new configurations, whisper option, multiple commands for each bot.

CODE
'ghl
'3.0
'&Ghost Host List:Call:Keeps track of your ghost bots and display the new games they hosted.
'&games - dispaly current games(can be changed and disabled)
'&40691
'&Please read the configurations comments and configure the plugin for your needs.:Please report all bugs/errors found.:Please suggest all you think would be great for the plugin on the plugin home topic.:All ghost bots must be on the stealthbot's friend list or else this will not work.:Multiple commands only works with whisper format.
'Assisted by: None

'//
'// Ghost Host List 3 . 0
private const vinterval = 20 'Timer interval(seconds) for whispers to be sent
private const vghost = "username1|username2" 'Ghost's username seperate with |
private const vghostcommand = ".getgames|-getgames" 'Command to whisper seperate with |
private const vghostformat = 0 '0 = FriendList - 1 = Wisper
private const vdisplayformat = 1 '1 = Normal - 2 = Emote
private const vdisplay = "%game(%used/%size)" 'New game display
private const vdisplay2 = "No games available." 'No new games
private const vtimerdisplay = 0 'Use timer to display new games
private const vtimerinterval = 20 'Time btw new game lists
private const vcommanddisplay = 1 'Use command to display new games
private const vcommandaccess = -1 'Access required to use display command
private const vcommand = "games" 'Command to display new games
private const vcommandspam = 5 'Anti-Spam seconds before command can be used again
'//
'// Game [%game : %username : %used/%size : %minutes] is in the lobby and there are %used2/%size2 other games in progress.
'// %spots - Gives you the number of spots that is open in the game can be used in vdisplay.
'// %rb - How many registered bots in the plugin.
'// %rc - How many registered commands in the plugin.
'//
public ghlL, ghlA, ghlO, ghlB
ghlL = vdisplay2
ghlO = ""
ghlA = false
ghlB = false

sub ghl_event_load()
TimerInterval "ghl", "ghost", int(vinterval)
TimerInterval "ghl", "list", int(vtimerinterval)
TimerInterval "ghl", "spam", int(vcommandspam)
TimerEnabled "ghl", "ghost", true
TimerEnabled "ghl", "spam", false
if int(vtimerdisplay) = 1 then TimerEnabled "ghl", "list", true else TimerEnabled "ghl", "list", false
end sub

sub ghl_ghost_timer()
dim TempCount : TempCount = 0
for x = 0 to UBound(Split(vghost, "|"))
if GetPositionByName(Split(vghost, "|")(x)) > 0 then
TempCount = TempCount + 1
end if
next
ghlO = ghlL
ghlL = vdisplay2
ghlB = true
if Int(UBound(Split(vghost, "|")) + 1) = Int(TempCount) then exit sub
if vghostformat = 0 then
AddQ "/f m " & vghostcommand
else
for x = 0 to UBound(Split(vghost, "|"))
dim TempStr
if x <= UBound(Split(vghostcommand, "|")) then
TempStr = Split(vghostcommand, "|")(x)
else
TempStr = vghostcommand
end if
dsp 3, TempStr, Split(vghost, "|")(x), vbGreen
next
end if
end sub

sub ghl_list_timer()
dim Games
if not ghlL = vdisplay2 then
Games = "Games: " & left(ghlL, len(ghlL) - 2)
else
Games = vdisplay2
end if
If ghlB and Not ghlO = vdisplay2 Then Games = "Games: " & left(ghlO, len(ghlO) - 2)
dsp vdisplayformat, Games, username, vbRed
end sub

sub ghl_spam_timer()
ghlA = false
TimerEnabled "ghl", "spam", false
end sub

sub ghl_event_whisperfromuser(username, flags, Message)
dim TempBoolean : TempBoolean = false
For x = LBound(Split(vghost, "|")) to UBound(Split(vghost, "|"))
if LCase(Username) = LCase(Split(vghost, "|")(x)) then
TempBoolean = true
exit for
end if
next
if not TempBoolean then exit sub
ghlB = false
if instr(lcase(message), "is in the lobby") then
dim TempString
TempSplit1 = Replace(message, "Game [", "")
TempSplit = Split(TempSplit1, "] is")(0)
Game = Split(TempSplit, " : ")(0)
Username = Split(TempSplit, " : ")(1)
Minutes = Split(TempSplit, " : ")(3)
TempSplit = Split(TempSplit, " : ")(2)
Used = Split(TempSplit, "/")(0)
Size = Split(TempSplit, "/")(1)
Spots = Int(Int(Size) - Int(Used))
TempSplit1 = split(message, " in the lobby and there are ")(1)
TempSplit = split(TempSplit1, " other games in progress.")(0)
Used2 = Split(TempSplit, "/")(0)
Size2 = Split(TempSplit, "/")(1)
TempString = vdisplay
TempString = replace(TempString, "%rb", UBound(Split(vghost, "|")))
TempString = replace(TempString, "%rc", UBound(Split(vghostcommand, "|")))
TempString = replace(TempString, "%game", Game)
TempString = replace(TempString, "%username", Username)
TempString = replace(TempString, "%used2", Used2)
TempString = replace(TempString, "%size2", Size2)
TempString = replace(TempString, "%used", Used)
TempString = replace(TempString, "%size", Size)
TempString = replace(TempString, "%minutes", Minutes)
TempString = replace(TempString, "%spots", Spots)
if InStr(ghlO, Game) <= 0 then dsp vdisplayformat, "New Game: " & TempString, botvars.username, vbgreen
if ghlL = vdisplay2 then ghlL = TempString & ", " else ghlL = ghlL & TempString & ", "
end if
end sub

sub ghl_event_usertalk(username, flags, message, ping)
if ghlA then exit sub
if int(vcommanddisplay) = 0 then exit sub
getdbentry username, access, flags
if access < vcommandaccess then exit sub
if lcase(message) = lcase(BotVars.Trigger & vcommand) then
if vcommandspam > 0 then
ghlA = true
TimerEnabled "ghl", "spam", true
end if
dim Games
if not ghlL = vdisplay2 then
Games = "Games: " & left(ghlL, len(ghlL) - 2)
else
Games = vdisplay2
end if
If ghlB and Not ghlO = vdisplay2 Then Games = "Games: " & left(ghlO, len(ghlO) - 2)
dsp vdisplayformat, Games, username, vbRed
end if
end sub
wow1234
ill try it out and let you know if any bugs occur biggrin.gif

There's an error for ".getgames|-getgames". It doesn't split, it whispered two of my bots .getgames|!getgames which doesnt show any of the games created in the lobby.
Call
QUOTE(wow1234 @ Aug 11 2009, 04:21 PM) *

ill try it out and let you know if any bugs occur biggrin.gif

There's an error for ".getgames|-getgames". It doesn't split, it whispered two of my bots .getgames|!getgames which doesnt show any of the games created in the lobby.


its already written in important information that only if you have wisper format you can use multiple commands system if your using /f m format then you just edit the settings from ".getgames|-getgames" to ".getgames" tongue.gif
wow1234
ahh THANK you biggrin.gif. it works great.

One more request, is it possible for .games to display the games that are in play
Call
QUOTE
GHL 3.5 Pre Code Notes (Brain Storm)

Basic
* Tracking system for each invadual bot.
* Whispering timer if bot got out of track range.
* Timer if bot arent in track range.
* Bug System (With reporter).
* Easier configurations with examples and details.
* reduced source code size.


The Currently subjects, if anyone got anything, they want in GHL 3.5 this is the time to post it.
FoxInTheBox
If theres games up there should be a function That when ppl join the channel it says
Games to join/Games up: cd44(+10)
Call
QUOTE(Xoriaz @ Aug 12 2009, 06:08 PM) *

If theres games up there should be a function That when ppl join the channel it says
Games to join/Games up: cd44(+10)


the games variable will be public so it will be easy to make a addon plugin that use the public variable and do what u want wink.gif

QUOTE(Xoriaz @ Aug 12 2009, 06:14 PM) *

U mean i can do it myself? biggrin.gif


if you know how yes when 3.5 comes
FoxInTheBox
U mean i can do it myself? biggrin.gif
FoxInTheBox
QUOTE(Call @ Aug 12 2009, 10:11 AM) *

QUOTE(Xoriaz @ Aug 12 2009, 06:08 PM) *

If theres games up there should be a function That when ppl join the channel it says
Games to join/Games up: cd44(+10)


the games variable will be public so it will be easy to make a addon plugin that use the public variable and do what u want wink.gif

QUOTE(Xoriaz @ Aug 12 2009, 06:14 PM) *

U mean i can do it myself? biggrin.gif


if you know how yes when 3.5 comes

When it comes..?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2014 Invision Power Services, Inc.