PDA

View Full Version : Stop Sound


complexity
05-13-2005, 11:30 PM
ON OUTCHAT {

{ 0 99 SETSPOTSTATE 99 UNLOCK } "stop"

CHATSTR LOWERCASE == IF

{

{ "@537,102

Use "STOP" to stop a wav from playing

" LOCALMSG } 110 ALARMEXEC


the trick to this script is that it has to be in door with id: 99 and in a locked state
and when ever anyone says stop the sound will stop

Credit: Mr. Wigglez

jon_k
06-14-2005, 01:58 AM
the trick to this script is that it has to be in door with id: 99 and in a locked state
and when ever anyone says stop the sound will stop

Credit: Mr. Wigglez

Credit: Me

Here's a better version of the script where the door can have any ID. That way you don't have to configure it. (Also your original had errors, like a missing } at the very end of the script, this is invalid syntax. Also missing on enter handler, and other { and } errors. REMEMBER in IPTSCRAE for every { you see there *MUST* be a closing })

; Script by Jon_K (jonkelley@gmail.com)
; An old burnt out scripter.
ON OUTCHAT {
{ 0 ME SETSPOTSTATE ME UNLOCK } "stop" CHATSTR LOWERCASE == IF
}

ON ENTER {
{ "@537,102 Use "STOP" to stop a wav from playing" LOCALMSG } 110 ALARMEXEC
}


Like the original, the door has to be set to lockable.

complexity
06-14-2005, 05:01 AM
ty I have never been perfect with copying & pasting. Nice script