Search found 6 matches

by DLMac
Tue May 04, 2004 5:28 pm
Forum: MQ2::Macros::Help
Topic: pointers please..
Replies: 12
Views: 2980

....

erm.. :oops: ...rumbled. It was indeed a data type error. The original script reads /declare mount global /declare recast global /declare mass global /declare spellname global /declare itemname global /declare tmpspellname global Blindly following an earlier post without thinking, I'd changed the me...
by DLMac
Tue May 04, 2004 10:53 am
Forum: MQ2::Macros::Help
Topic: pointers please..
Replies: 12
Views: 2980

...

Okies I've given this whirl and not getting expected results. /if (${Defined[Param1]}==FALSE) /call Syntax /if (${Defined[Param1]}) /varset itemname ${Param1} /echo ${Param0} /echo ${Param1} /varset spellname ${Param0} /echo ${spellname} based on launching the macro with: /macro imbue "imbue em...
by DLMac
Tue May 04, 2004 9:40 am
Forum: MQ2::Macros::Help
Topic: pointers please..
Replies: 12
Views: 2980

sub main /declare MyVar string local /varset MyVar LordGiddion tells you got it now? /call testsub "${MyVar}" /call testsub ${MyVar} /return sub testsub /echo ${Param0} /return First echo will display LordGiddion tells you got it now? second echo will display LordGiddion Okay, I can see w...
by DLMac
Tue May 04, 2004 4:32 am
Forum: MQ2::Macros::Help
Topic: pointers please..
Replies: 12
Views: 2980

Okay, been reading some more. As well as the above question can someone please confirm this observation. Current code reads /if (${Defined[Param1]}) /varset itemname "@Param1" Should this be changed to read /if (${Defined[Param1]}) /varset itemname ${Param1} I'm a little thrown by the use ...
by DLMac
Tue May 04, 2004 3:46 am
Forum: MQ2::Macros::Help
Topic: pointers please..
Replies: 12
Views: 2980

Sheer delight when i found this post imbue.mac (Imbue/Enchant macro) copied the macros and gave them a whirl. A stream of errors, surprising for scripts posted April 27th thought would work. This macro is pre-MQ2Datavar, so should be a simple fix. Look for the older style Parms @Param and change th...
by DLMac
Tue May 04, 2004 3:04 am
Forum: MQ2::Macros::Help
Topic: pointers please..
Replies: 12
Views: 2980

pointers please..

Hiyas! I'm something of a noob to MQ - however have experience of programming with C and Java over some years so development isn't alien. I've looked over the manual page, and also the some of the example macros but run in to problems. First, let me just say, the "buffs" macro works fine, ...