if "$spawn(@ID_TARGET_NEXT,type)"!="NPC"

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

Moderator: MacroQuest Developers

barice01
orc pawn
orc pawn
Posts: 11
Joined: Sun May 09, 2004 7:15 am

if "$spawn(@ID_TARGET_NEXT,type)"!="NPC"

Post by barice01 » Wed May 12, 2004 3:45 am

have no idea to tran behind code , and i already watch so many spawn code...

Code: Select all

/if "$spawn(@isFighting,type)"!="NPC"
thx for help :)

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

Post by ml2517 » Wed May 12, 2004 4:51 am

Code: Select all

/if (${Spawn[${isFighting}].Type.NotEqual[NPC]})

barice01
orc pawn
orc pawn
Posts: 11
Joined: Sun May 09, 2004 7:15 am

thx ml2517

Post by barice01 » Wed May 12, 2004 5:12 am

you code look like more simple then mine :)

Code: Select all

/if ($String[${Spawn[${isFighting}].Type}].NotEqual[NPC]})
what diffrent ? i dont understand ?[/code]
Last edited by barice01 on Wed May 12, 2004 5:45 am, edited 1 time in total.

Falco72
a hill giant
a hill giant
Posts: 215
Joined: Fri Sep 26, 2003 3:24 am

Post by Falco72 » Wed May 12, 2004 5:24 am

Type is already a string so you do not need to convert it to string and then use notequal. You can simply use the ml2517 code, it do the same of yours but better :wink: .

barice01
orc pawn
orc pawn
Posts: 11
Joined: Sun May 09, 2004 7:15 am

Thx Folco72

Post by barice01 » Wed May 12, 2004 5:52 am

now i undertand :)

but not very clear that Object uses :)

i will keep look code thx :)

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

Re: Thx Folco72

Post by eqjoe » Fri May 14, 2004 7:21 pm

barice01 wrote:now i undertand :)

but not very clear that Object uses :)

i will keep look code thx :)
L'anglais n'est pas votre premier languange ?

:?:

-j

User avatar
Fuergrissa
a grimling bloodguard
a grimling bloodguard
Posts: 607
Joined: Mon Dec 08, 2003 3:46 pm
Location: UK

Post by Fuergrissa » Fri May 14, 2004 7:44 pm

ahhh another employee in Microsoft Technical Support

Oid
a snow griffon
a snow griffon
Posts: 416
Joined: Thu Oct 17, 2002 3:26 am
Contact:

Post by Oid » Fri May 14, 2004 9:35 pm

Fuck the french.
Smokey the Lax says only you can prevent reproduction.

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

Post by eqjoe » Sat May 15, 2004 9:48 pm

No man.. I was just asking if English was his primary language. :twisted: