Author Topic: 'Enemy Death' Notifier  (Read 1811 times)

0 Members and 1 Guest are viewing this topic.

Offline 8 BallTopic starter

  • Full Member
  • ***
  • Posts: 102
  • Activity:
    0%
  • Reputation Power: 2
  • 8 Ball has no influence.
  • Gender: Male
  • Respect: +13
  • Referrals: 0
    • View Profile
'Enemy Death' Notifier
« on: July 02, 2013, 06:04:30 AM »
0
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?

Offline Alpha

  • Hero Member
  • *
  • Posts: 583
  • Activity:
    0%
  • Reputation Power: 10
  • Alpha barely matters.Alpha barely matters.
  • Respect: +44
  • Referrals: 0
    • View Profile
Re: 'Enemy Death' Notifier
« Reply #1 on: July 02, 2013, 05:16:20 PM »
0
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
 

Tags: