Page 1 of 1

code problem...

Posted: Thu Oct 14, 2004 12:08 pm
by Valenciano

Code: Select all

Sub Main 
  /twist 1 2 3 4
  
:hpcheck 
  /if (${Me.PctHPs}<35) /goto :fade 
  /goto :hpcheck 

:fade 
  /attack off 
  /twist stop 
  /alt activate 212 
  /echo FADE MEMORIES ACTIVATED!!!
  /vgroup 006 
  /echo Heal plz !!!
  /delay 10 secs 
 /goto :hpcheck 

/return 
All works 100% and i see that group msg is launched but char dont fade ( bard) , i dont know why code dont do it, just i get a report at mq2 windows that says:

(alt) not recognized
(activate) not recognized
(212) not recognized

Or so, maybe is because the plugin that i use dont have this option or info implemented? ( MQ2Twist )

mm,could maybe use a bind to a toggle that have the info of the fade? then i ll delete the line /alt activation 212 and use like /keypress F , for example...

Still trying to learn, any advise or a step to guide me in the correct way ll be accepted ( dont want that u solucionate my problem, i just need ideas about what is worng in the code ) , thanks in advance friends

Posted: Thu Oct 14, 2004 12:13 pm
by fearless

Code: Select all

#include spell_routines.inc

Sub Main 
  /twist 1 2 3 4 
  
:hpcheck 
  /if (${Me.PctHPs}<35) /goto :fade 
  /goto :hpcheck 

:fade 
  /attack off 
  /twist stop 
  /call Cast "Fade" alt
  /echo FADE MEMORIES ACTIVATED!!! 
  /vgroup 006 
  /echo Heal plz !!! 
  /delay 10 secs 
 /goto :hpcheck 

/return 
http://www.macroquest2.com/phpBB2/viewtopic.php?t=7568

Should work

Posted: Thu Oct 14, 2004 12:16 pm
by Valenciano
thanks Fearless, i ll test as soon as i can, ton of thanks again

Gg i missed it (((

<<spell_routines.inc>>

Features:
- Casts spells, clicks items, or uses AA abilities for you.....

Posted: Thu Oct 14, 2004 2:18 pm
by mercdev

Code: Select all

Sub Main
  /twist 1 2 3 4
 
:hpcheck
  /if (${Me.PctHPs}<35) /goto :fade
  /goto :hpcheck

:fade
  /attack off
  /twist stop
  /aa act "Fade"
  /echo FADE MEMORIES ACTIVATED!!!
  /vgroup 006
  /echo Heal plz !!!
  /delay 10s
 /goto :hpcheck

/return
This should work without having to include any other files (however spell_routines.inc was well done)

Posted: Thu Oct 14, 2004 3:10 pm
by peach
just out of curiousity, shouldn't

Code: Select all

 /echo Heal plz !!! 
be

Code: Select all

 /g Heal plz !!! 
? what's the use echoing it :p