Page 3 of 3

Posted: Thu May 13, 2004 6:43 pm
by eqjoe
Rusty~ wrote: Couldn't you just do something like

Code: Select all

/if ( !${Spawn[${mobID}].ID} ) {
 stuff
}
Tried that. In my combat sub I use

Code: Select all

/target id ${mobID}
/if (!${Target.ID}) /goto mobdead
If I do this:

Code: Select all

/target id ${mobID}
/if (!${Spawn[${mobID}].ID}) /goto mobdead
It works fine. But the stand alone if statement has given me problems.

-j

Posted: Thu May 13, 2004 8:01 pm
by ml2517
If you are doing things like that you have to /delay long enough for you to fully aquire a target. Put a:

/delay 5

or

/delay 7

In there so it has time to aquire the target.

Posted: Fri May 14, 2004 2:18 pm
by Zeit
I cant get my script to take any action now upon events only chat example

Code: Select all

#Event Tash #*#"tells you, 'Tash"#*#

Sub Event_Tash
    /assist Zeit
    /delay 5
    /cast "Howl of Tashan"
    /delay 5
    /cast "Howl of Tashan"
/return
doesnt work but in the same script

Code: Select all

#Event succt #*#"glances nervously abou"#*#

Sub Event_succt
    /reply %t has been tashed.
/return
works fine ?! very confused ;(

Posted: Fri May 14, 2004 2:20 pm
by Lax
probably because you're not using it right.

#Event Tash "#*#tells you, 'Tash#*#'"

all ## and || have to be inside the fucking event!

Posted: Fri May 14, 2004 2:33 pm
by Zeit

Code: Select all

#Event Tash "#*#tells you, 'Tash#*#"
#Event Tash #*#"tells you, 'Tash"#*#
neither work but i dont understand how this works

Code: Select all

#Event succt #*#"glances nervously abou"#*#

Sub Event_succt
    /reply %t has been tashed.
/return

the other event works fine the one i listed above with the tash confirmation, toon wont cast buffs on command but if you cast them manually she answers you with the confirmation[/code]

Posted: Fri May 14, 2004 2:43 pm
by ml2517
First off.. do use #event when dealing with anything chat, tell, say related etc. Use #chat. No, I'm not going to explain how to do it because there are tons of macros out there that you can steal the routines from.

On the second part Lax just got done telling you not to put the #*# outside of the quotes:

This crap:

Code: Select all

#Event succt #*#"glances nervously abou"#*#

Sub Event_succt
    /reply %t has been tashed.
/return
Should be:

Code: Select all

#Event succt "#*# glances nervously about#*#"

Sub Event_succt
    /reply %t has been tashed.
/return