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
> [RESOLVED]Request: GHost Host Whisper
Parrothead
post Aug 20 2009, 07:08 PM
Post #1


Jr. Member
**

Group: Members
Posts: 45
Joined: 10-June 07
Member No.: 24,727



A cool plugin for GHost would be similar to another one posted here somewhere, in which it posts the game the bot is in, but it's a little different.

First, The Stealthbot would get whispered everytime the hostbot joins a game because they're mutual friends, and will be displayed all games joined (this would require them to both be friends for the plugin to work, so flooding wouldn't be a big issue. Please do this if you make the plugin).

Then, everytime a user joins your channel with the right amount of access (a setting in the plugin), it would display something like the thing below.

/w (username) The (bots name) is currently hosting '(gamename)'.

The Stealthbot would copy the game name the hostbot joins.

Of course if the hostbot's in the channel, I'm pretty sure the Stealthbot could detect it somehow without using /whois (im bad in scripting, so I wouldn't know). If the host is in the channel, no greet will be shown.

This would require both bots to friend each other and for them to both be in the same channel. Also, the plugin would function very similar to the greet.

Example
QUOTE

[0v3r 9000 AM] -- Hostbot [-1ms] has joined the channel using Warcraft III: The Frozen Throne (Level: 0, icon tier Random, peon icon, in Clan *TAGHERE*)

[0v3r 9000 AM] -- Setting gametag to 'none'.

[0v3r 9001 AM] -- RandomUser [-1ms] has joined the channel using Warcraft III: The Frozen Throne (Level: 0, icon tier Random, peon icon, in Clan *TAGHERE*) ((ACCESS=9))

(Says nothing because bot isn't ingame)

[0v3r 9002 AM] -- <From Hostbot> Your friend Hostbot entered a Warcraft III The Frozen Throne game called xxDotA 5v5 -Demo Nubzxx.

[0v3r 9002 AM] -- Setting gametag to 'xxDotA 5v5 -Demo Nubzxx'.<br>

[0v3r 9003 AM] -- RandomUser [-1ms] has joined the channel using Warcraft III: The Frozen Throne (Level: 0, icon tier Random, peon icon, in Clan *TAGHERE*) ((ACCESS=9))

[0v3r 9003 AM] -- <To RandomUser> The Hostbot is currently hosting 'xxDotA 5v5 -Demo Nubzxx'.

[0v3r 9003 AM] -- RandomUser1337 [-1ms] has joined the channel using Warcraft III: The Frozen Throne (Level: 0, icon tier Random, peon icon, in Clan *TAGHERE*) ((ACCESS=0))

(Says nothing because the bot requires 9 access to whisper the user).


This post has been edited by Parrothead: Aug 20 2009, 07:13 PM
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Fallen-God
post Aug 21 2009, 07:35 AM
Post #2


Full Member
***

Group: Members
Posts: 120
Joined: 30-May 08
Member No.: 37,466



Here:

CODE
'GSS
'1.0
'Ghost Status Script:Fallen-God

Private Const intAccess = 0
Private Const Ghostname = "Fallen-God[LcR]"

Public Botstatus, Gamename

Sub GSS_Event_UserJoins(Username, Flags, Message, Ping, Product, Level, OriginalStatString)
   If LCase(Username) = LCase(Ghostname) Then
      AddChat VBGreen, "Detected Ghost joining channel. Greet disabled."
      Botstatus = 1
   Else
      GetDBEntry Username,Access,Flags
      If Access >= intAccess Then
         Select Case Botstatus
            Case 1
               Exit Sub
            Case 2
               Dsp 3, "Welcome " & Username & ". The hostbot is currently in game:  " & Gamename, Username, 0
         End Select
      Else
         Exit sub
      End If
   End If
End Sub

Sub GSS_Event_WhisperFromUser(Username, Flags, Message)
   If LCase(Username) = LCase(Ghostname)
      If Match(Message,"Your friend * entered a Warcraft III The Frozen Throne game called *",True) Then
         Botstatus = 2
         Gamename = Mid(Message,67+Len(Username),Len(Message)-1)
         AddChat VBGreen, "Detected Ghost joining game: " & Gamename
      If Match(Message,"Your friend * entered a Warcraft III The Frozen Throne game called *",True) Then
         Botstatus = 2
         Gamename = Mid(Message,67+Len(Username),Len(Message)-1)
         AddChat VBGreen, "Detected Ghost joining game: " & Gamename
   End If
End Sub


This post has been edited by Fallen-God: Aug 21 2009, 07:44 AM


--------------------
QUOTE
Most active topic:
Trash Can
( 17 posts / 57% of this member's active posts )

Lol.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Call
post Aug 21 2009, 07:37 AM
Post #3


Posting God
*****

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



search for GHL plugin just?


--------------------
IPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Parrothead
post Aug 21 2009, 01:23 PM
Post #4


Jr. Member
**

Group: Members
Posts: 45
Joined: 10-June 07
Member No.: 24,727



QUOTE
[2:30:03 PM] <From (HOST)> Your friend (HOST) entered a Warcraft III The Frozen Throne game called DotA 5v5 -APSO US/CA! #429.
[2:30:03 PM] WhisperFromUser Call Error On File> C:\Program Files\StealthBot\plugins\GHostSeen.txt
[2:30:03 PM] Error Number: 13 Description: Type mismatch

[2:32:45 PM] -- CMNC(Trivia) [-1ms] has joined the channel using Warcraft III: Reign of Chaos (Level: 0, icon tier Random, peon icon, in Clan CMNC)
[2:32:45 PM] UserJoins Call Error On File> C:\Program Files\StealthBot\plugins\GHostSeen.txt
[2:32:45 PM] Error Number: 13 Description: Type mismatch


I got that as soon as I turned it on.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Fallen-God
post Aug 21 2009, 03:04 PM
Post #5


Full Member
***

Group: Members
Posts: 120
Joined: 30-May 08
Member No.: 37,466



My bad.

CODE
'GSS
'1.0
'Ghost Status Script:Fallen-God

Private Const intAccess = 0
Private Const Ghostname = "Fallen-God[LcR]"

Public Botstatus, Gamename

Sub GSS_Event_UserJoins(Username, Flags, Message, Ping, Product, Level, OriginalStatString)
   If LCase(Username) = LCase(Ghostname) Then
      AddChat VBGreen, "Detected Ghost joining channel. Greet disabled."
      Botstatus = 1
   Else
      GetDBEntry Username,Access,Flags
      If Access >= intAccess Then
         Select Case Botstatus
            Case 1
               Exit Sub
            Case 2
               Dsp 3, "Welcome " & Username & ". The hostbot is currently in game:  " & Gamename, Username, 0
         End Select
      Else
         Exit sub
      End If
   End If
End Sub

Sub GSS_Event_WhisperFromUser(Username, Flags, Message)
   If Match(Message,"Your friend * entered a Warcraft III The Frozen Throne game called *",True) AND LCase(Username) = LCase(Ghostname) Then
      Botstatus = 2
      Gamename = Mid(Message,67+Len(Username),Len(Message)-1)
      AddChat VBGreen, "Detected Ghost joining game:  " & Gamename
   End If
End Sub


--------------------
QUOTE
Most active topic:
Trash Can
( 17 posts / 57% of this member's active posts )

Lol.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Parrothead
post Aug 21 2009, 04:30 PM
Post #6


Jr. Member
**

Group: Members
Posts: 45
Joined: 10-June 07
Member No.: 24,727



It works now!! This is a very amazing Stealthbot plugin and doesn't flood at all.

Thanks a lot!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Spiritless
post Aug 26 2009, 07:20 PM
Post #7


Me 1337 plz??
**

Group: Members
Posts: 58
Joined: 25-July 09
From: My home?
Member No.: 52,816



When loading this plugin with CRS plugin, i get this error when i load the script:
QUOTE

[5:59:23 PM] Load Call Error On File> C:\Program Files\StealthBot\Plugins\crsClanRankScript.plug
[5:59:23 PM] Error Number: 501 Description: Illegal assignment


When someone joins the channel, i get this:
QUOTE

[5:59:23 PM] UserJoins Call Error On File> C:\Program Files\StealthBot\Plugins\crsClanRankScript.plug
[5:59:23 PM] Error Number: 501 Description: Illegal assignment


If i delete the GSS plugin and reload script, everything works just fine.


--------------------
IPB Image
-OverLord of Flame Spiritless_One - Legion of Flame -- Welcome to the Legion
www.LoF-Legion.tk
IPB Image
IPB Image

Ѕףﺃѓїtlۼss_Ộ∩
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
The-Black-Ninja
post Aug 26 2009, 07:26 PM
Post #8


Pure Sex
********

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



The GSS and CRS have conflicting variables.


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

-My Plugins :: Thanks Pyro :)
IPB ImageIPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Spiritless
post Aug 26 2009, 07:40 PM
Post #9


Me 1337 plz??
**

Group: Members
Posts: 58
Joined: 25-July 09
From: My home?
Member No.: 52,816



Can you make a version of GSS that has diffrent variables?


--------------------
IPB Image
-OverLord of Flame Spiritless_One - Legion of Flame -- Welcome to the Legion
www.LoF-Legion.tk
IPB Image
IPB Image

Ѕףﺃѓїtlۼss_Ộ∩
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
The-Black-Ninja
post Aug 26 2009, 07:45 PM
Post #10


Pure Sex
********

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



Try changing
CODE
Private Const intAccess = 0
To
CODE
Private Const gssintAccess = 0
Then do a find and replace to replace the intAccess with the gssintAccess throughout the GSS plugin. See if that helps.


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

-My Plugins :: Thanks Pyro :)
IPB ImageIPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Spiritless
post Aug 26 2009, 08:01 PM
Post #11


Me 1337 plz??
**

Group: Members
Posts: 58
Joined: 25-July 09
From: My home?
Member No.: 52,816



Thanks again The-Black-Ninja! tongue.gif

I had an idea that it was conflicting variables but i had no idea which variables, or how to fix it. hehe. I learned something new today! yay!


--------------------
IPB Image
-OverLord of Flame Spiritless_One - Legion of Flame -- Welcome to the Legion
www.LoF-Legion.tk
IPB Image
IPB Image

Ѕףﺃѓїtlۼss_Ộ∩
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
The-Black-Ninja
post Aug 26 2009, 08:32 PM
Post #12


Pure Sex
********

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



I have marked this topic as resolved. If you did not receive a satisfactory response, please reply and provide as much detail as possible.


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

-My Plugins :: Thanks Pyro :)
IPB ImageIPB Image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Fallen-God
post Aug 27 2009, 05:57 AM
Post #13


Full Member
***

Group: Members
Posts: 120
Joined: 30-May 08
Member No.: 37,466



Ahh I learnt something new as well.
So from now on I should start naming my variables things like gss_Tag or whatever to avoid these problems.
Cheers.


--------------------
QUOTE
Most active topic:
Trash Can
( 17 posts / 57% of this member's active posts )

Lol.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
The-Black-Ninja
post Aug 27 2009, 08:02 AM
Post #14


Pure Sex
********

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



Actually, with 2.7, if you Private your variables, this problem won't happen, so don't sweat too much about it.


--------------------
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: 22nd December 2014 - 09:40 PM
Skin by Andrea
Website Legal Information | Hosted by LunarPages