can this be converted to new data

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

Moderator: MacroQuest Developers

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

can this be converted to new data

Post by Fuergrissa » Wed May 05, 2004 2:19 pm

Can anyone convert this if it is indeed possible.

Code: Select all

/if n $char(skill,"$spell("@spellName",skill)")==@arcaneLevel
Arcanelevel is max - say 235
Spellname is derived from:

Code: Select all

/varset ${SpellName} ${Me.Gem[${GemNumber}]}

Preocts
a snow griffon
a snow griffon
Posts: 312
Joined: Thu Jan 29, 2004 1:02 pm

Post by Preocts » Wed May 05, 2004 2:33 pm

:shock: Sometimes you just overlook the damn obvious. Found what you wanted right after I read this post.
Spell:
...string Skill: Skill name

Code: Select all

/if (${Me.Skill[${Spell[${SpellName}].Skill}]}==${arcaneLevel})

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

Post by Fuergrissa » Wed May 05, 2004 2:38 pm

I knew a fresh look at that avatar would spur the required Events needed for you to find the answer :)