Printable Version of Topic

Click here to view this topic in its original format

StealthBot.net _ Script Creation Requests _ Friend login sound

Posted by: Fragda Oct 3 2009, 04:43 PM

Hi I were just wondering if someone can make a script where it sounds when a friend is signing in.
Wich kind of sound is not important, I just need a notify when they are going online.
Cheers
Ted

Posted by: The-Black-Ninja Oct 3 2009, 06:54 PM

CODE
'friendlogin
'1.0


Sub friendlogin_Event_ServerInfo(Message)

   If InStr(Message, "Your friend ") > 0 AND InStr(Message, " has entered Battle.net.") > 0 Then
      DoBeep 800,100
      DoBeep 600, 100
      DoBeep 300, 100
   End If
End Sub

Posted by: Fragda Oct 5 2009, 02:04 PM

QUOTE(The-Black-Ninja @ Oct 4 2009, 01:54 AM) *

CODE
'friendlogin
'1.0


Sub friendlogin_Event_ServerInfo(Message)

   If InStr(Message, "Your friend ") > 0 AND InStr(Message, " has entered Battle.net.") > 0 Then
      DoBeep 800,100
      DoBeep 600, 100
      DoBeep 300, 100
   End If
End Sub






Thanks alot, sorry I'm a noob at this.. Just adding it in script document dont work, do I have to add a "'//Fires when" tag before the code?




Posted by: 7thAce Oct 5 2009, 02:35 PM

No, you should read http://www.stealthbot.net/board/index.php?showtopic=5935.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)