Ok I admit it, I guess I am stupid

The one stop shop for information relating to CFG files and binds

Moderator: MacroQuest Developers

User avatar
Muffez
orc pawn
orc pawn
Posts: 13
Joined: Sat Mar 06, 2004 6:28 pm

Ok I admit it, I guess I am stupid

Post by Muffez » Thu Apr 29, 2004 10:04 pm

I have search the forums, looked at other examples, but yet I am unable to get anything to work with this bind anymore. I am sure its just not converted correctly. Any assistance would be great.

Code: Select all

/declare mainassist global
/custombind add setassist 
/custombind set setassist /multiline ; /varset mainassist ${Target.Name};/echo Main assist: @mainassist
/custombind add assistmain 
/custombind set assistmain /multiline ; /assist @mainassist;/echo Assisting @mainassist
/bind assistmain w 
/bind setassist o
Forgot to add...This code worked perfectly before this patch/MQ update.
Thanks in advance.

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

Post by ml2517 » Thu Apr 29, 2004 10:10 pm

No clue if all of the bind stuff is correct but fixed the variable stuff:

Code: Select all

/declare mainassist string global 
/custombind add setassist 
/custombind set setassist /multiline ; /varset mainassist ${Target.Name};/echo Main assist: ${mainassist}
/custombind add assistmain 
/custombind set assistmain /multiline ; /assist ${mainassist};/echo Assisting ${mainassist}
/bind assistmain w 
/bind setassist o

User avatar
Muffez
orc pawn
orc pawn
Posts: 13
Joined: Sat Mar 06, 2004 6:28 pm

Post by Muffez » Thu Apr 29, 2004 10:26 pm

Cool, thank you very much, and I now I see what part I was overlooking.

User avatar
bohicaseti
a lesser mummy
a lesser mummy
Posts: 33
Joined: Sat Mar 06, 2004 5:55 am

Post by bohicaseti » Fri Apr 30, 2004 11:01 am

This is just a guess, but I had to change all my /delcare global's to Outers, so wouldn't

Code: Select all

/declare mainassist string global
become?

Code: Select all

/declare mainassist string Outer
If this is not the case in this particular setup, I appologize, just offering my 2 cents.
Friends help friends move . . . .
Real friends help friends move dead bodies.

Dulapore
a lesser mummy
a lesser mummy
Posts: 67
Joined: Thu Feb 26, 2004 4:39 am

Post by Dulapore » Fri Apr 30, 2004 11:42 am

How would Outer work since there is no macro running?

User avatar
bohicaseti
a lesser mummy
a lesser mummy
Posts: 33
Joined: Sat Mar 06, 2004 5:55 am

Post by bohicaseti » Fri Apr 30, 2004 12:18 pm

Doh! My bad, been in macro editing mode all morning and had me a good size brain fart. :oops:
Friends help friends move . . . .
Real friends help friends move dead bodies.

yesman
a lesser mummy
a lesser mummy
Posts: 64
Joined: Tue Apr 27, 2004 9:06 pm

Post by yesman » Fri Apr 30, 2004 2:32 pm

I'm trying to fix this myself.

Code: Select all

/declare mainassist string global


This is redundant, string is the default for /declare

...

Still, with the second /echo in it's still returning NULL. Assisting the "mainassist" manually to confirm if they have a target reaffirms that for some reason "mainassist" variable is not being held; it's just being used for the first line.