I made this function for my bot, i share this with you guys.
This functions Speak what you write (So with this, i don't need a PlayerAttack alarm or something.)
How to use?Code:Function PlaySound(ByVal text As String) If text Is Nothing Then Exit Function End If Dim speaker = CreateObject("sapi.spvoice") speaker.Speak(text) End Function
Code:PlaySound("player attack")