Page 48 of 61

digital

Posted: Sat Jul 16, 2005 2:09 am
by tranze204
Hey digital could you help me fix the RH macro? or post an updates version? or someone that has it??

Posted: Sat Jul 16, 2005 1:30 pm
by Shamna
In order to fix the RH.mac you need to go in and change all the

Code:
} Else /if (${Varible}) }


To a format that will work with the current version of MQ2, Like this

Code:
} Else {
/if (${Varible})
}
Replaced all,it returns error ...Or not,Cant escape,cant nimble...Farewell !!!

Posted: Sat Jul 16, 2005 2:27 pm
by tranze204
/if (${doChicken} && (${Me.PctHPs}<=${nimblehealth}) && !${chickentimer})
{
im getting an error saying could not find command to parce? and before i changed it.. to this it said found another subroutine? any suggestion... i changed what u guys said to new format...

Posted: Sat Jul 16, 2005 5:16 pm
by the_horror
For Instance this is what i Replaced to fix it.

Code: Select all

Sub Event_SetDisc2(string Line) 
  /varset lastevent Event_SetDisc2 
  /if (${Line.Arg[3].Equal[OFF]}) { 
    /varset doDisc2 FALSE 
    /if (${verbosity}>=0) /${channel} ** Autodisc #2 is now OFF! 
  [color=red]} else /if (${Line.Arg[3].Equal[ON]}) {[/color] 
    /varset doDisc2 TRUE 
    /if (${verbosity}>=0) /${channel} ** Autodisc #2 is now ON! 
  } else { 
    /varset doDisc2 TRUE 
    /if (${Line.Arg[3].Length}) /varset disc2 ${Line.Arg[3]} 
    /if (${Line.Arg[4]} > 0) /varset disc2end ${Line.Arg[4]} 
    /if (${Line.Arg[5]} > 0) /varset disc2reuse ${Line.Arg[5]} 
    /if (${verbosity}>=0) /${channel} ** Auto Disc #2: ${doDisc2} -> ${disc2}/${disc2reuse} mins - End: ${disc2end} 
  } 
  /ini "RHSettings.ini" "General" "AutoDisc2" "${doDisc2}" 
  /ini "RHSettings.ini" "General" "Disc2" "${disc2}" 
  /ini "RHSettings.ini" "General" "Disc2Endurance" "${disc2end}" 
  /ini "RHSettings.ini" "General" "Disc2Reuse" "${disc2reuse}" 
/return 

Code: Select all

Sub Event_SetDisc2(string Line) 
  /varset lastevent Event_SetDisc2 
  /if (${Line.Arg[3].Equal[OFF]}) { 
    /varset doDisc2 FALSE 
    /if (${verbosity}>=0) /${channel} ** Autodisc #2 is now OFF! 
 [color=red]} else {
    /if (${Line.Arg[3].Equal[ON]}) { [/color]
   /varset doDisc2 TRUE 
    /if (${verbosity}>=0) /${channel} ** Autodisc #2 is now ON! 
  } else { 
    /varset doDisc2 TRUE 
    /if (${Line.Arg[3].Length}) /varset disc2 ${Line.Arg[3]} 
    /if (${Line.Arg[4]} > 0) /varset disc2end ${Line.Arg[4]} 
    /if (${Line.Arg[5]} > 0) /varset disc2reuse ${Line.Arg[5]} 
    /if (${verbosity}>=0) /${channel} ** Auto Disc #2: ${doDisc2} -> ${disc2}/${disc2reuse} mins - End: ${disc2end} 
  } 
[color=red]}[/color]
  /ini "RHSettings.ini" "General" "AutoDisc2" "${doDisc2}" 
  /ini "RHSettings.ini" "General" "Disc2" "${disc2}" 
  /ini "RHSettings.ini" "General" "Disc2Endurance" "${disc2end}" 
  /ini "RHSettings.ini" "General" "Disc2Reuse" "${disc2reuse}" 
/return 
Not sure if it is completely the correct way to do it. But it is working for me so far.

Posted: Sat Jul 16, 2005 5:43 pm
by ethelby
So... you wanna post your working copy so we don't all have to make the same changes? Please? :)

Posted: Sat Jul 16, 2005 5:46 pm
by the_horror
Dont have all the bugs worked out of it yet. Been to busy doing other stuff to go through and fix everything. Soon as i finish fixing it i will post what i have.

Posted: Sat Jul 16, 2005 6:02 pm
by skyler
ethelby wrote:So... you wanna post your working copy so we don't all have to make the same changes? Please? :)
Don't be so lazy. Learn a little and do it yourself. This is a very easy fix. The very basics of any program language

Posted: Sat Jul 16, 2005 6:38 pm
by ethelby
Yeah I know the syntax is just like PHP but I can't work on macro's while I'm playing :(

is

Code: Select all

} ELSE {
       /IF (conditions) {
      }
}
the only valid way to do an Else If ? is there not a way to keep an ELSE IF statement on one line in the macros?

Posted: Sat Jul 16, 2005 7:27 pm
by skyler
if you wanted to get technical, there is no "Else If" statements in any language. It's just an "Else" statement then an "If". It would seem that they changed the else statements to be just like the if statements.

Posted: Sun Jul 17, 2005 1:12 am
by keichii12
Been messing around with this, and I've got it to start just fine, but after the first time I attack it stops responding. I also get the error:

Code: Select all

/varset failed, variable 'dynclose' not found
rh.mac@254 (Main): /if ($(ini[THSettings.ini, General,DynamicCloseness.NotEqual[NULL]}) /varset dynclose $(Ini[RHSettings.ini,General,DynamicCloseness]} 
I could still change the closeness and toggle dynclose, but still would stop responding after the first time attack was turned off.

Working

Posted: Sun Jul 17, 2005 11:27 am
by tranze204
With todays new Mq2 release that deal with ELSE the original macro seems to be in working order again... well so far that i have tests...

Posted: Sun Jul 17, 2005 11:41 am
by JimJohnson
keichii12 wrote:Been messing around with this, and I've got it to start just fine, but after the first time I attack it stops responding. I also get the error:

Code: Select all

/varset failed, variable 'dynclose' not found
rh.mac@254 (Main): /if ($(ini[THSettings.ini, General,DynamicCloseness.NotEqual[NULL]}) /varset dynclose $(Ini[RHSettings.ini,General,DynamicCloseness]} 
I could still change the closeness and toggle dynclose, but still would stop responding after the first time attack was turned off.
Check to see if its declared in the /delcare section

Posted: Mon Jul 18, 2005 1:06 pm
by Shamna
still cant get it to work sadly...Anyone kind enough to post a repaired macro?

Posted: Mon Jul 18, 2005 1:24 pm
by ethelby
Have you downloaded the newest version of MQ dated 7-16? It corrected most if not all the issues with RH introduced in the 7-15 version.

Make sure you go back to the original RH macro when you get the 7-16 version of MQ2 compiled.

Posted: Tue Jul 19, 2005 5:52 am
by Shamna
No,i didnt..compiling right now...thanks for heads up.