ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: 8 Ball on July 02, 2013, 06:04:30 AM

Title: 'Enemy Death' Notifier
Post by: 8 Ball on July 02, 2013, 06:04:30 AM
Hi all, I've been putting together a simple script to help me farm in Shame more effectively on my sampire and I've come up with a feature I'd like to include but don't know how to go about coding - basically I'd like the script to play a sound or pop up a notification to tell me when my current enemy(s) are dead so I can move my character on. Any ideas?
Title: Re: 'Enemy Death' Notifier
Post by: Alpha on July 02, 2013, 05:16:20 PM
I'd use something like this for a quick and easy..   Just make sure to set the path correctly to where you have your sound file located.

Code: [Select]
set %UEV_type BD

START:

Display ok Please Target The Unbound EV to Kill
set #Targcurs 1
While #Targcurs = 1
  wait 1
set %UEV_Id #ltargetid

Gosub Wait_For_Death

goto START
;--------------------------
Sub  Wait_For_Death

Wait_for_Death:
set #ltargetid %UEV_ID
event macro 27 0
Finditem %UEV_Id
If #Findcnt < 1
  {
    sound C:\USERS\BOB\Documents\EUO\warning.wav
    Display Hit OK to Continue
    Return
  }
Goto Wait_For_Death