IPB

Welcome Guest ( Log In | Register )

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

3 Pages V < 1 2 3 >  
Closed TopicStart new topic
> iHost Plugin, Error 13
FoxInTheBox
post Aug 6 2009, 07:48 AM
Post #31


Foxxy
***

Group: Members
Posts: 271
Joined: 10-July 09
Member No.: 52,383



Call i want it to work? xD you mean your plugin or the first post?


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Call
post Aug 6 2009, 07:48 AM
Post #32


Posting God
*****

Group: Beta Testers
Posts: 1,423
Joined: 15-June 08
From: Denmark, Copenhagen
Member No.: 38,127



QUOTE(Xoriaz @ Aug 6 2009, 03:48 PM) *

Call i want it to work? xD you mean your plugin or the first post?


you obv want what my plugin is for what more do you want?


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
FoxInTheBox
post Aug 6 2009, 07:50 AM
Post #33


Foxxy
***

Group: Members
Posts: 271
Joined: 10-July 09
Member No.: 52,383



I dont want it to whisper /f m since i use that for another thing <,< want it to /w 2bots :s


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Call
post Aug 6 2009, 10:33 AM
Post #34


Posting God
*****

Group: Beta Testers
Posts: 1,423
Joined: 15-June 08
From: Denmark, Copenhagen
Member No.: 38,127



QUOTE(Xoriaz @ Aug 6 2009, 03:50 PM) *

I dont want it to whisper /f m since i use that for another thing <,< want it to /w 2bots :s


it use /f m to decrease chances for flood and if you use /f m to something else to there is higher chance u will flood


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
FoxInTheBox
post Aug 6 2009, 10:55 AM
Post #35


Foxxy
***

Group: Members
Posts: 271
Joined: 10-July 09
Member No.: 52,383



idc if it flood out i want it to /w ......


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Call
post Aug 6 2009, 11:02 AM
Post #36


Posting God
*****

Group: Beta Testers
Posts: 1,423
Joined: 15-June 08
From: Denmark, Copenhagen
Member No.: 38,127



QUOTE(Xoriaz @ Aug 6 2009, 06:55 PM) *

idc if it flood out i want it to /w ......


stupid -.- but w/e

Change;
CODE
AddQ "/f m " & vghostcommand


To;
CODE
   for x = 0 to UBound(Split(vghost, "|"))
      AddQ "/w " & Split(vghost, "|")(x) & " " & vghostcommand
   next


Happy flooding


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
FoxInTheBox
post Aug 6 2009, 01:53 PM
Post #37


Foxxy
***

Group: Members
Posts: 271
Joined: 10-July 09
Member No.: 52,383



Haha thanks ^^

Hm ops forgot its 2bots with different triggers help xD

Host4You !
Host4me -

This post has been edited by Xoriaz: Aug 6 2009, 01:54 PM


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Call
post Aug 7 2009, 01:28 AM
Post #38


Posting God
*****

Group: Beta Testers
Posts: 1,423
Joined: 15-June 08
From: Denmark, Copenhagen
Member No.: 38,127



QUOTE(Xoriaz @ Aug 6 2009, 09:53 PM) *

Haha thanks ^^

Hm ops forgot its 2bots with different triggers help xD

Host4You !
Host4me -


use ghlGhostHostList 2.9

This post has been edited by Call: Aug 7 2009, 01:28 AM


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
FoxInTheBox
post Aug 7 2009, 05:46 AM
Post #39


Foxxy
***

Group: Members
Posts: 271
Joined: 10-July 09
Member No.: 52,383



shit bugg again :s i didnt change anything when i type any command like .games it gives Error 13

This post has been edited by Xoriaz: Aug 7 2009, 05:48 AM


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Call
post Aug 7 2009, 12:41 PM
Post #40


Posting God
*****

Group: Beta Testers
Posts: 1,423
Joined: 15-June 08
From: Denmark, Copenhagen
Member No.: 38,127



QUOTE(Xoriaz @ Aug 7 2009, 01:46 PM) *

shit bugg again :s i didnt change anything when i type any command like .games it gives Error 13


i will take a look later i just got done with this beer pong thing and i'm not really thinking straight i this thing is like spinning og det er sku ikk så godt..


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
FoxInTheBox
post Aug 7 2009, 02:09 PM
Post #41


Foxxy
***

Group: Members
Posts: 271
Joined: 10-July 09
Member No.: 52,383



rofl


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
AwaKening
post Aug 7 2009, 10:25 PM
Post #42


Don't u know who I am
***

Group: Sr. Members
Posts: 764
Joined: 19-February 06
From: Utah
Member No.: 275



QUOTE(Call @ Aug 6 2009, 11:02 AM) *

QUOTE(Xoriaz @ Aug 6 2009, 06:55 PM) *

idc if it flood out i want it to /w ......


stupid -.- but w/e


It's not stupid. Friend lists are utilized in many other plugins which would make this plugin annoying as hell for other people to see the command issued everytime. /w is a much better option regardless of how much slower it's going to be (which isn't much)


--------------------
Rival Nations Reborn Map Creator

Clan RnR.com
If you're looking for a "REAL" dota league script, aim or pm me.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Call
post Aug 8 2009, 03:23 AM
Post #43


Posting God
*****

Group: Beta Testers
Posts: 1,423
Joined: 15-June 08
From: Denmark, Copenhagen
Member No.: 38,127



QUOTE(AwaKening @ Aug 8 2009, 06:25 AM) *

QUOTE(Call @ Aug 6 2009, 11:02 AM) *

QUOTE(Xoriaz @ Aug 6 2009, 06:55 PM) *

idc if it flood out i want it to /w ......


stupid -.- but w/e


It's not stupid. Friend lists are utilized in many other plugins which would make this plugin annoying as hell for other people to see the command issued everytime. /w is a much better option regardless of how much slower it's going to be (which isn't much)


so instead of using 1 quick command to example 4 ghost host bots, u want to use 4 x whisper commands.. really smart

and Xoriaz there is no bugs in the script only error 13 comes when the ghost bot do not come with the output with this format: "Game [%game : %username : %used/%size : %minutes] is in the lobby and there are %used2/%size2 other games in progress."


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
FoxInTheBox
post Aug 8 2009, 06:56 AM
Post #44


Foxxy
***

Group: Members
Posts: 271
Joined: 10-July 09
Member No.: 52,383



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 = "Host4You|Host4Me"                             'Ghost's username seperate with |
private const vghostcommand = "!getgames|-getgames"                    'Command to whisper seperate with |
private const vghostformat = 1                                                '0 = FriendList - 1 = Wisper
private const vdisplayformat = 2                                                   '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

[14:56:58] Timer Call Error On Script: Prefix> ghl TimerName> ghost
[14:56:58] Error Number: 13 Description: Inkompatibla typer
The only thing that doesnt work is that it doesnt /w my bots.. i get this error above when it tries to whisp em
.games works now tho

This post has been edited by Xoriaz: Aug 8 2009, 07:01 AM


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Call
post Aug 8 2009, 08:07 AM
Post #45


Posting God
*****

Group: Beta Testers
Posts: 1,423
Joined: 15-June 08
From: Denmark, Copenhagen
Member No.: 38,127



QUOTE(Xoriaz @ Aug 8 2009, 02:56 PM) *

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 = "Host4You|Host4Me"                             'Ghost's username seperate with |
private const vghostcommand = "!getgames|-getgames"                    'Command to whisper seperate with |
private const vghostformat = 1                                                '0 = FriendList - 1 = Wisper
private const vdisplayformat = 2                                                   '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

[14:56:58] Timer Call Error On Script: Prefix> ghl TimerName> ghost
[14:56:58] Error Number: 13 Description: Inkompatibla typer
The only thing that doesnt work is that it doesnt /w my bots.. i get this error above when it tries to whisp em
.games works now tho


idk how u get these bugs but clearly i've tested it and found none..


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
FoxInTheBox
post Aug 8 2009, 08:48 AM
Post #46


Foxxy
***

Group: Members
Posts: 271
Joined: 10-July 09
Member No.: 52,383



uhhh


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
FoxInTheBox
post Aug 10 2009, 05:19 AM
Post #47


Foxxy
***

Group: Members
Posts: 271
Joined: 10-July 09
Member No.: 52,383



Prince u can tell me/give me dat script? ^^

call how does it work with /f msg with 2triggers? does it /f msg .getgames/-getgamesor
/f msg -getgames
/f msg !getgames?

G_G


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Prince Zero
post Aug 10 2009, 05:36 AM
Post #48


Jr. Member
**

Group: Members
Posts: 38
Joined: 3-February 09
Member No.: 46,352



QUOTE(Xoriaz @ Aug 10 2009, 05:19 AM) *

Prince u can tell me/give me dat script? ^^

call how does it work with /f msg with 2triggers? does it /f msg .getgames/-getgamesor
/f msg -getgames
/f msg !getgames?

G_G



It's not for stealthbot, its for Fool Ops, so im afraid if i post it here, some "guy" will warn me or ban me.
[YEAH I KNOW ITS VBs TOO] but the timers and some other staff are different in Fool ops.

The scripts does /f m
instead of whispering each bot individualy. It grabs the stupid long message from the hostbot and cuts off the gamenames. so if you receive a msg like this Game [ap55 : Xoriaz : 7/10 : 6m ] is in the lobby
and a whole bunch of other whispers regarding that type of whisper
the output will be like this : • New Games => ap55(+3) ap22(+7) sdso11(+9)
that timer is every 30 seconds.
the /f m timer is every 20 seconds.
and yes the bot doesnt flood.



--------------------
The mind is Power
Power is strength
Strength is Might
Might is Magic
I'm the Mind


yyo this is an imba plugin

Removed annoying long code. -PhiX
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
FoxInTheBox
post Aug 10 2009, 05:41 AM
Post #49


Foxxy
***

Group: Members
Posts: 271
Joined: 10-July 09
Member No.: 52,383



Is fool ops good?


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Call
post Aug 10 2009, 07:27 AM
Post #50


Posting God
*****

Group: Beta Testers
Posts: 1,423
Joined: 15-June 08
From: Denmark, Copenhagen
Member No.: 38,127



QUOTE(Xoriaz @ Aug 10 2009, 01:19 PM) *

Prince u can tell me/give me dat script? ^^

call how does it work with /f msg with 2triggers? does it /f msg .getgames/-getgamesor
/f msg -getgames
/f msg !getgames?

G_G


lol god that was a stupid one <.< multiple commands only work with wisper currently

@Prince Zero u obv know shit about what your talking about fools op and stealthbot has the same category "Battle.Net Bot" and not same sub category stealthbot = customizeable chat bot and fools ops is Moderator based Only

This post has been edited by Call: Aug 10 2009, 07:29 AM


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
FoxInTheBox
post Aug 10 2009, 07:42 AM
Post #51


Foxxy
***

Group: Members
Posts: 271
Joined: 10-July 09
Member No.: 52,383



Anyways call-- Ur plugin works if i do /f msg but not if i use the /w -getgames thingy, thats when i get the error:
[14:56:58] Timer Call Error On Script: Prefix> ghl TimerName> ghost
[14:56:58] Error Number: 13 Description: Inkompatibla typer


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Call
post Aug 10 2009, 07:43 AM
Post #52


Posting God
*****

Group: Beta Testers
Posts: 1,423
Joined: 15-June 08
From: Denmark, Copenhagen
Member No.: 38,127



QUOTE(Xoriaz @ Aug 10 2009, 03:42 PM) *

Anyways call-- Ur plugin works if i do /f msg but not if i use the /w -getgames thingy, thats when i get the error:
[14:56:58] Timer Call Error On Script: Prefix> ghl TimerName> ghost
[14:56:58] Error Number: 13 Description: Inkompatibla typer


will debug and fix it next weekend just started on University so cant do much in week days


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
FoxInTheBox
post Aug 10 2009, 07:44 AM
Post #53


Foxxy
***

Group: Members
Posts: 271
Joined: 10-July 09
Member No.: 52,383



Ok Nice gl in university ^^


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Prince Zero
post Aug 10 2009, 08:10 AM
Post #54


Jr. Member
**

Group: Members
Posts: 38
Joined: 3-February 09
Member No.: 46,352



QUOTE(Call @ Aug 10 2009, 07:43 AM) *

QUOTE(Xoriaz @ Aug 10 2009, 03:42 PM) *

Anyways call-- Ur plugin works if i do /f msg but not if i use the /w -getgames thingy, thats when i get the error:
[14:56:58] Timer Call Error On Script: Prefix> ghl TimerName> ghost
[14:56:58] Error Number: 13 Description: Inkompatibla typer


will debug and fix it next weekend just started on University so cant do much in week days



ITS A 2 MINS WORK

i know shit? ok try using the shitty "stealthbot way" timer in a foolops bot
YOu're so pro

FOOLOPS MR.PRO creates timers as OBJECTS
LET ME GIVE U A PLAIN EXAMPLE MR.PRO CODER
dim timer
const interval = 5 '// in Seconds
set timer = CreateTimer("timername", Interval)

then you can enable the timer like this
timername.Enabled = True

`/////////
Srsly stop being so negative
Coding such scripts takes minutes. Obviusly with beta testers like you sb 2.7 will be released 2000NEVER

'////
Stealthbot uses this method
const interval = 5 '// in Seconds
TimerInterval "scriptname", "timername", interval
TimerEnabled "scriptname", "timername", True

Thats for Stealthbot.

Xoriaz dont worry , i wont let you wait for this professional coder to update that epic fail script.
ill fix it for you in 10 mins np


--------------------
The mind is Power
Power is strength
Strength is Might
Might is Magic
I'm the Mind


yyo this is an imba plugin

Removed annoying long code. -PhiX
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
FoxInTheBox
post Aug 10 2009, 08:17 AM
Post #55


Foxxy
***

Group: Members
Posts: 271
Joined: 10-July 09
Member No.: 52,383



xD nice biggrin.gif


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Prince Zero
post Aug 10 2009, 09:10 AM
Post #56


Jr. Member
**

Group: Members
Posts: 38
Joined: 3-February 09
Member No.: 46,352



QUOTE
CODE
'prohost
'1.0

'//Set the hostbot names, if you leave the value to "" then the script will ignore that hostbot
Const host1 = "hostbot1", host2 = "", host3 = ""
'//Interval between each GetGames check
Const getInterval = 30 '// if you use only 1 hostbot you can set this to 20
'//Set this to 0 if you dont have observers slots, otherwise set it to 2
Const obs = 0
'//Set access required to use the getgames command
Const aReq = 20
'//Set your hostbot's trigger here
Const hTrig1 = "!" '// for the 1st hostbot
Const hTrig2 = "!" '// for the 2nd hostbot
Const hTrig3 = "!" '// for the 3rd hostbot
'//Dont touch if you really know what you're doing
Private fline, gline, hline
Public proHost_Floodstate
Const myPink = &H3971FF
Const myColor = &H1955CF

Sub prohost_Event_Load()
    AddChat myPink, "Pro Host Loaded..."
    AddChat vbCyan, "You're gonna DIG this!"
    Addchat myColor, "by Prince.Zero"
    TimerInterval "prohost", "getsomegames", getInterval
    TimerEnabled "prohost", "getsomegames", False
    proHost_floodstate = 0
    fline = ""
    gline = ""
    hline = ""
    TimerInterval "prohost", "floodreduce", 10
    TimerEnabled "prohost", "floodreduce", True
end sub

Sub prohost_Event_ChannelJoin(ChannelName, Flags)    
    TimerEnabled "prohost", "getsomegames", True
    Addchat vbGreen, "Getgames timer enabled"
End Sub

sub prohost_floodreduce_timer()
    proHost_floodstate = proHost_floodstate - (proHost_floodstate/2)
end sub

sub prohost_getsomegames_timer()
    if(proHost_floodstate>=700) then exit sub
    if(len(host1)>0) then AddQ "/w "&host1&" "&hTrig1&"getgames"
    if(len(host2)>0) then AddQ "/w "&host2&" "&hTrig2&"getgames"
    if(len(host3)>0) then AddQ "/w "&host3&" "&hTrig3&"getgames"
end sub

Sub prohost_Event_Usertalk(Username, Flags, Message, Ping)
    isCmd = cbool(0)
    if(Mid(Message, 1, 1)) = BotVars.Trigger then isCmd = cbool(1)
    If iscmd and len(message)>1 then
        if inStr(message, " ")><0 then
            arg = split(message, " ")
            cmd = mid(arg(0), Len(BotVars.Trigger)+1, Len(arg(0))-Len(BotVars.Trigger))
            parameter = mid(message, len(cmd)+2, len(message))
        else
            cmd = mid(message, Len(BotVars.Trigger)+1, len(message)-Len(BotVars.Trigger))
            parameter = ""
        end if
        Select Case lcase(cmd)
            Case "games", "getgames", "gamesup", "games?"
                GetDBEntry Username, hasA, hasF
                if(hasA<aReq) then exit sub
                getGames()
        End Select
    end if
end sub

sub getgames()
    gameline = fline&gline&hline
    if(len(gameline)>1) then
        AddQ "Games open: "&gameline
    else
        AddQ "No games in lobby"
    end if
end sub

Sub prohost_Event_WhisperFromUser(Username, Flags, Message)
    if(InStr(LCase(message), "is in the lobby")>0) then
        message = replace(message, "Game", "")
        message = replace(message, "]", "")
        message = replace(message, "[", "")
        arr = Split(message, " : ")
        tt = arr(0)
        ty = arr(2)
        tm = arr(3)
        gg = split(ty, "/")
        need = gg(1) - gg(0)
        message = tt&"(+"&need-obs&") "
        proHost_floodstate = proHost_floodstate + len(messagE)
        Select Case Lcase(username)
            Case host1: fline = message
            Case host2: gline = message
            Case host3: hline = message
            Case else: exit sub
        End Select
    end if
    if(InStr(LCase(message), "there is no")>0) then
        Select Case Lcase(Username)
            Case host1: fline = ""
            Case host2: gline = ""
            Case host3: hline = ""
            Case else: exit sub
        End Select
    end if
End sub



HARDLY CHALLENGED MY FRIEND
WASNT THAT FRIGIN 10 MINS?

Enjoy


--------------------
The mind is Power
Power is strength
Strength is Might
Might is Magic
I'm the Mind


yyo this is an imba plugin

Removed annoying long code. -PhiX
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
FoxInTheBox
post Aug 10 2009, 09:13 AM
Post #57


Foxxy
***

Group: Members
Posts: 271
Joined: 10-July 09
Member No.: 52,383



nice nice Brb test

games", "getgames", "gamesup", "games?"
is the cmd's?

This post has been edited by Xoriaz: Aug 10 2009, 09:19 AM


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Prince Zero
post Aug 10 2009, 09:24 AM
Post #58


Jr. Member
**

Group: Members
Posts: 38
Joined: 3-February 09
Member No.: 46,352



yeaa baby







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 vghostcommand2 = "-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 "/w " & vghostcommand
   AddQ "/w " & vghostcommand2
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




WHAT A BUNCH OF TRASH CODE
YOU DONT EVEN KNOW OF GOOD METHODS TO GRAB a specific STRING noob0

This post has been edited by Prince Zero: Aug 10 2009, 09:25 AM


--------------------
The mind is Power
Power is strength
Strength is Might
Might is Magic
I'm the Mind


yyo this is an imba plugin

Removed annoying long code. -PhiX
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Prince Zero
post Aug 10 2009, 09:42 AM
Post #59


Jr. Member
**

Group: Members
Posts: 38
Joined: 3-February 09
Member No.: 46,352



QUOTE(Xoriaz @ Aug 10 2009, 09:34 AM) *

[17:34:13] <To Host4You> !getgames
[17:34:13] <From Host4You> There is no game in the lobby and there are 0/100 other games in progress.
[17:34:14] <To Host4Me> -getgames
[17:34:14] <From Host4Me> Game [G_G : MarksTheSpot : 0/10 : 1m] is in the lobby and there are 2/100 other games in progress.
[17:34:23] <MarksTheSpot> .gamesup
[17:34:23] <ImS)Dance> No games in lobby
ughh `?



i debugged it

[18:39:07] <From Klobe-Two> !getgames
[18:39:10] <To Klobe-Two> Game [G_G : MarksTheSpot : 0/10 : 1m] is in the lobby and there are 2/100 other games in progress.
[18:39:13] <hostbot1> `getgames
[18:39:14] <Klobe-Two> Games open: G_G(+10)


Oo?

what exactly did you touch in the script?


--------------------
The mind is Power
Power is strength
Strength is Might
Might is Magic
I'm the Mind


yyo this is an imba plugin

Removed annoying long code. -PhiX
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
FoxInTheBox
post Aug 10 2009, 09:44 AM
Post #60


Foxxy
***

Group: Members
Posts: 271
Joined: 10-July 09
Member No.: 52,383



CODE
'prohost
'1.0

'//Set the hostbot names, if you leave the value to "" then the script will ignore that hostbot
Const host1 = "Host4You", host2 = "Host4Me", host3 = ""
'//Interval between each GetGames check
Const getInterval = 30 '// if you use only 1 hostbot you can set this to 20
'//Set this to 0 if you dont have observers slots, otherwise set it to 2
Const obs = 0
'//Set access required to use the getgames command
Const aReq = 20
'//Set your hostbot's trigger here
Const hTrig1 = "!" '// for the 1st hostbot
Const hTrig2 = "-" '// for the 2nd hostbot
Const hTrig3 = "!" '// for the 3rd hostbot


this


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

3 Pages V < 1 2 3 >
Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 25th July 2014 - 11:05 PM
Skin by Andrea
Website Legal Information | Hosted by LunarPages