Need to pickup heal message

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

Eloasti
a lesser mummy
a lesser mummy
Posts: 31
Joined: Tue Feb 24, 2004 8:03 am

Need to pickup heal message

Post by Eloasti » Wed Feb 25, 2004 5:08 pm

Hi!

I know I can pickup the message "You have healed..." with an event, but is it anyway I can pickup the amount of hps I have healed for, and store it to a variable?

You have healed Player for 1000 points of damage.
In this case I want to take 1000 and store it to a variable.

I've been looking around all day, but still have no clue on how to do this, please help :)

User avatar
blueninja
a grimling bloodguard
a grimling bloodguard
Posts: 541
Joined: Thu Aug 28, 2003 7:03 am
Location: Göteborg, Sweden

Post by blueninja » Wed Feb 25, 2004 5:35 pm

$arg(#,"string"[,separator])
Returns a space delimited substring.

$arg(2,"Am I here?") will return "I"
$arg(3,"Am I here?") will return "here?"
In your event sub put something like this:

Code: Select all

Sub Event_healed
     /declare healedpoints local
     /varset healedpoints $arg(6,"@Param0")
/return
Might want to add checks to make sure that it's really a number or something too, in case it triggers off another similar string.

EDIT: typo~

Eloasti
a lesser mummy
a lesser mummy
Posts: 31
Joined: Tue Feb 24, 2004 8:03 am

Post by Eloasti » Wed Feb 25, 2004 5:43 pm

Hi!

Thank you, i'll try this! :)