CUSTOM EVENTS CHANGE COMING

For questions regarding conversion of scripts from the old, parm style to the new MQ2Data format. Conversion questions only!

Moderator: MacroQuest Developers

eqjoe
a grimling bloodguard
a grimling bloodguard
Posts: 984
Joined: Sat Sep 28, 2002 12:26 pm

Post by eqjoe » Thu May 13, 2004 6:43 pm

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

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Thu May 13, 2004 8:01 pm

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.

Zeit
a lesser mummy
a lesser mummy
Posts: 34
Joined: Sat Jan 24, 2004 5:54 am

Post by Zeit » Fri May 14, 2004 2:18 pm

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 ;(

Lax
We're not worthy!
We're not worthy!
Posts: 3524
Joined: Thu Oct 17, 2002 1:01 pm
Location: ISBoxer
Contact:

Post by Lax » Fri May 14, 2004 2:20 pm

probably because you're not using it right.

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

all ## and || have to be inside the fucking event!
Lax Lacks
Master of MQ2 Disaster
Purveyor of premium, EULA-safe MMORPG Multiboxing Software
* Multiboxing with ISBoxer: Quick Start Video
* EQPlayNice, WinEQ 2.0

Zeit
a lesser mummy
a lesser mummy
Posts: 34
Joined: Sat Jan 24, 2004 5:54 am

Post by Zeit » Fri May 14, 2004 2:33 pm

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]

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Fri May 14, 2004 2:43 pm

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