FAQ  •  Register  •  Login

Minor bug in WoW macro generator

Moderator: MiRai

<<

tanker

Posts: 222

Joined: Mon Jan 03, 2011 2:27 am

Post Tue Jul 10, 2012 7:35 pm

Minor bug in WoW macro generator

I'm making a generic 2-10 invite macro, with an automatic convert to raid.

Code:
!if ("slot 1" and character is not "slot 1") /invite {SLOT1}
!if ("slot 2" and character is not "slot 2") /invite {SLOT2}
!if ("slot 6") /script ConvertToRaid()
!if ("slot 3" and character is not "slot 3") /invite {SLOT3}
!if ("slot 4" and character is not "slot 4") /invite {SLOT4}
!if ("slot 5" and character is not "slot 5") /invite {SLOT5}
!if ("slot 6" and character is not "slot 6") /invite {SLOT6}
!if ("slot 7" and character is not "slot 7") /invite {SLOT7}
!if ("slot 8" and character is not "slot 8") /invite {SLOT8}
!if ("slot 9" and character is not "slot 9") /invite {SLOT9}
!if ("slot 10" and character is not "slot 10") /invite {SLOT10}


Gives an error "- Invalid Conditions -" on the preview page (because of line #2), but

Code:
!if ("slot 1" and character is not "slot 1") /invite {SLOT1}
!if ("slot 2" and character is not "slot 2") /invite {SLOT2}
!if ("slot 6") /script ConvertToRaid()
!if ("slot 3" and character is not "slot 3") /invite {SLOT3}
!if ("slot 4" and character is not "slot 4") /invite {SLOT4}
!if ("slot 5" and character is not "slot 5") /invite {SLOT5}
!if ("slot 6" and character is not "slot 6") /invite {SLOT6}
!if ("slot 7" and character is not "slot 7") /invite {SLOT7}
!if ("slot 8" and character is not "slot 8") /invite {SLOT8}
!if ("slot 9" and character is not "slot 9") /invite {SLOT9}
!if ("slot 10" and character is not "slot 10") /invite {SLOT10}


Works correctly.

PS I haven't actually tried this in-game :D
PPS Edit to fix order, works in-game :D :D
Last edited by tanker on Tue Jul 10, 2012 10:48 pm, edited 1 time in total.
<<

Alge

User avatar

League of Extraordinary Multiboxers

Posts: 1223

Joined: Wed Jan 26, 2011 2:17 am

Location: Under the milky way tonight

Post Tue Jul 10, 2012 8:35 pm

Re: Minor bug in WoW macro generator

An easier to read version of the second line would be
Code:
!if (character is "slot 6") /script ConvertToRaid()
<<

tanker

Posts: 222

Joined: Mon Jan 03, 2011 2:27 am

Post Tue Jul 10, 2012 10:47 pm

Re: Minor bug in WoW macro generator

Alge wrote:An easier to read version of the second line would be
Code:
!if (character is "slot 6") /script ConvertToRaid()


That will only make a raid if I invite from slot 6. What I want is:

Code:
If slot 6 exists
    /script ConvertToRaid()
else
    /*do nothing*/


So, for a five man team when I invite from Toon1

Code:
/invite Toon2
/invite Toon3
/invite Toon4
/invite Toon5


and for a 10 man team I get

Code:
/invite Toon2
/script ConvertToRaid()
/invite Toon3
/invite Toon4
/invite Toon5
/invite Toon6
/invite Toon7
/invite Toon8
/invite Toon9
/invite Toon10


The second form works perfectly, but shouldn't (I think) require !if("slot 6" and "slot 6")

Return to General

Who is online

Users browsing this forum: No registered users and 0 guests