Page 2 of 4

Posted: Tue Jun 15, 2004 12:21 am
by LamahHerder
Flea wrote:Out of curiosity, would you be able to use {Target.MaxRangeTo} so that it will always melee at maximum distance?
Target.MaxRangeTo is unacurate from what I have heard

Posted: Tue Jun 15, 2004 12:26 am
by LamahHerder
Flea wrote:Also, receiving a spam of "You do not seem to have that ability on a /doability button" when putting "Flying Kick" in the .ini file. Also, initiating macro as "/macro stick 0 "Flying Kick" " doesnt seem to fix it. It isnt executing Flying Kick, any ideas?
First try running the macro 06.14.04b
And while its running do a /echo ${MeleeAttack_1}

See what it says it is trying to do

I am assumeing the /echo will report Flying
If it is then these changes will fix that,
basically put " " around all the /varset MeleeAttack's

Code: Select all

  :setParams
    /if (${Defined[Param0]}) {
      /varset OpenCorpse "${Param0}"
        } else {
          /varset OpenCorpse ${Ini[${PCini},${Me.Name},OpenCorpse]}
          }
        }
    /if (${Defined[Param1]}) {
      /varset MeleeAttack_1 "${Param1}"
        } else {
          /varset MeleeAttack_1 ${Ini[${PCini},${Me.Name},MeleeAttack_1]}
          }
        }
    /if (${Defined[Param2]}) {
      /varset MeleeAttack_2 "${Param2}"
        } else {
          /varset MeleeAttack_2 ${Ini[${PCini},${Me.Name},MeleeAttack_2]}
          }
        }
    /if (!${Defined[Param3]}) {
      /varset MeleeAttack_3 "${Param3}"
        } else {
          /varset MeleeAttack_3 ${Ini[${PCini},${Me.Name},MeleeAttack_3]}
          }
        }

  :setINIvalues
    /if (${OpenCorpse.Equal[NULL]}) /varset OpenCorpse ${Ini[${PCini},${Me.Name},OpenCorpse]}
    /if (${MeleeAttack_1.Equal[NULL]}) /varset MeleeAttack_1 "${Ini[${PCini},${Me.Name},MeleeAttack_1]}"
    /if (${MeleeAttack_2.Equal[NULL]}) /varset MeleeAttack_2 "${Ini[${PCini},${Me.Name},MeleeAttack_2]}"
    /if (${MeleeAttack_3.Equal[NULL]}) /varset MeleeAttack_3 "${Ini[${PCini},${Me.Name},MeleeAttack_3]}"
    /varset DefaultMeleeDistance ${Ini[${PCini},${Me.Name},DefaultMeleeDistance]}
if /echo shows Flying Kick
They will need to put " " around all the MeleeAttack_X in
:attackMeleeLoop


Let me know what /echo is reporting please 8*)
Dont have a monk no more so cant test it myself.

Posted: Tue Jun 15, 2004 12:52 am
by Flea
Returning "NULL" before and after quotes.

Posted: Tue Jun 15, 2004 7:52 pm
by LamahHerder
Very odd, delete your stick-pc.ini

in eq type

Code: Select all

/mac stick 0 "Flying Kick"
Macro will end
in eq type

Code: Select all

/mac stick 0 "Flying Kick"
Now in eq type

Code: Select all

/echo ${MeleeAttack_1}

Hi, im having the same problem

Posted: Fri Jun 18, 2004 4:53 am
by Seariz
Im having the same problem as the other guy, and doing what you said didn't help at all. it still wont kick at all any suggestions?

Posted: Fri Jun 18, 2004 5:08 am
by Seariz
Scratch that, posted before I actually thought about it and tried to figure it out. Anyway, incase anyone else has this problem and does the same, instead of putting disarm or flying kick in there just put the number of your /doabaility skill you want in there. For me instead of putting MeleeAttack_1=Flying Kick In the ini file, I put MeleeAttack_1=1

Posted: Tue Jun 22, 2004 4:03 pm
by A Troll
Can someone explain me how to use my Silver Hoop of Speed ?
i put it in the pc-ini leftear but didnt work :-(

Posted: Thu Jun 24, 2004 1:45 am
by Seariz
I hate you just because you have that earring...

Posted: Sat Jun 26, 2004 5:53 am
by A Troll
No one uses any click items with this script ?

Posted: Tue Jun 29, 2004 1:45 am
by mcdebug
hey m0nk, this macro is freaking awesome, so awesome that i usually leave it on permanantly throughout my playtime as a monk when not boxing. since i leave it on while playing, it also stays on when i go afk for long periods. ive realized that adding a new area to this macro could prove quite usefull to anyone using it that leaves it on when going afk. recently my friend tried to log me on to loot an item ive been trying to get for a while, but couldnt after he realized i was afk. i've decided to try to add some code that might prevent this sort of thing happening again and its based on designating predetermined masters and them being able to control you while stick is on. heres my shot at it, have at it and improve if you wish

Code: Select all


|===========| 
| 06.14.04b | 
|___________| 
|           | 
| stick.mac | 
| by m0nk   | 
|___________| 
| 
| Startup: 
|  /mac stick "OpenCorpse (0 or 1)" "MeleeAbility_1" "MeleeAbility_2" "MeleeAbility_3" 
|  /mac stick (will use stick-pc.ini settings) 
|  /mac stick 0 "bash" (will not loot and only bash) 
|  /mac stick 1 "Flying Kick" "Disarm" "mend" (will Open Corpse, Flying Kick ,disarm, mend, when avail) 
| 
| Toggles: 
|  /echo tt (Will Toggle Tanking) - Not Implemented 
|  /echo toc (Will Toggle Opening Corpses) 
|  /echo tal (Will Toggle Auto Looting) - Not Implemented 
| 
| 
#turbo 
#Chat tell
#event slain "#*#You have slain#*#" 
#event slain "#*#has been slain by#*#" 
#event RageON "#*#has become ENRAGED.#*#" 
#event RageOFF "#*#is no longer enraged#*#" 
#event MobGate "#*# Gates.#*#" 
#event Invited "#*#To join the group, click on the 'FOLLOW' option, or 'DISBAND' to cancel#*#" 
#event StunON "#*#You are stunned#*#" 
#event StunON "#*#You lose control of yourself!#*#" 
#event StunOFF "#*#You are unstunned#*#" 
#event StunOFF "#*#You have control of yourself again.#*#" 
#event AddMaster  "[MQ2] AddMaster#*#" 
#event RemMaster  "[MQ2] RemoveMaster#*#"
|#event TankThisRound "#*#to ignore others and attack you!#*#" 
|#event ToggleTank "#*#[MQ2] tt#*#" 
#event ToggleOpenCorpse "#*#[MQ2] toc#*#" 

/squelch /alias /addmaster /echo AddMaster 
/squelch /alias /remmaster /echo RemoveMaster

Sub main 
  :setDeclares 
    /declare PCini outer 
    /declare NPCini outer 
    /declare MA_SB outer 
    /declare MobID outer 
    /declare CharX outer 
    /declare CharY outer 
    /declare MOBini outer 
    /declare AutoLoot outer 
    /declare OpenCorpse outer 
    /declare TankToggle outer 
    /declare MeleeAttack_1 outer 
    /declare MeleeAttack_2 outer 
    /declare MeleeAttack_3 outer 
    /declare MeleeDistance outer 
    /declare DefaultMeleeDistance outer 

	/squelch /alias /addmaster /echo AddMaster 
    /squelch /alias /remmaster /echo RemoveMaster 

	| building empty master list if there isnt one
	 /if (!${Ini[stick-pc.ini,Masters,Controller1].Length}) { 
    |- It's not in there yet 
    /for i 1 to 20 
      /ini "stick-pc.ini" "Masters" "Controller${i}" "Nobody" 
    /next i 
  } 

  :setGenericVars 
    /varset MA_SB NULL 
    /varset TankToggle NULL 
    /varset PCini stick-pc.ini 
    /varset NPCini stick-npc.ini 
  
  :NewCharacterCheck 
    /varset OpenCorpse ${Ini[${PCini},${Me.Name},OpenCorpse]} 
    /if (${OpenCorpse.Equal[NULL]}) /goto :NewCharacter 

  :setParams 
    /if (${Defined[Param0]}) { 
      /varset OpenCorpse ${Param0} 
        } else { 
          /varset OpenCorpse ${Ini[${PCini},${Me.Name},OpenCorpse]} 
          } 
        } 
    /if (${Defined[Param1]}) { 
      /varset MeleeAttack_1 ${Param1} 
        } else { 
          /varset MeleeAttack_1 ${Ini[${PCini},${Me.Name},MeleeAttack_1]} 
          } 
        } 
    /if (${Defined[Param2]}) { 
      /varset MeleeAttack_2 ${Param2} 
        } else { 
          /varset MeleeAttack_2 ${Ini[${PCini},${Me.Name},MeleeAttack_2]} 
          } 
        } 
    /if (!${Defined[Param3]}) { 
      /varset MeleeAttack_3 ${Param3} 
        } else { 
          /varset MeleeAttack_3 ${Ini[${PCini},${Me.Name},MeleeAttack_3]} 
          } 
        } 

  :setINIvalues 
    /if (${OpenCorpse.Equal[NULL]}) /varset OpenCorpse ${Ini[${PCini},${Me.Name},OpenCorpse]} 
    /if (${MeleeAttack_1.Equal[NULL]}) /varset MeleeAttack_1 ${Ini[${PCini},${Me.Name},MeleeAttack_1]} 
    /if (${MeleeAttack_2.Equal[NULL]}) /varset MeleeAttack_2 ${Ini[${PCini},${Me.Name},MeleeAttack_2]} 
    /if (${MeleeAttack_3.Equal[NULL]}) /varset MeleeAttack_3 ${Ini[${PCini},${Me.Name},MeleeAttack_3]} 
    /varset DefaultMeleeDistance ${Ini[${PCini},${Me.Name},DefaultMeleeDistance]} 

  :StickBegin 
    /if (!${MeleeAttack_1.Equal[NONE]}) /echo Auto ${MeleeAttack_1} when available. 
    /if (!${MeleeAttack_2.Equal[NONE]}) /echo Auto ${MeleeAttack_2} when available. 
    /if (!${MeleeAttack_3.Equal[NONE]}) /echo Auto ${MeleeAttack_3} when available. 
    /if (!${OpenCorpse.Equal[0]}) /echo Auto Open Corpse 
  /goto :mainloop 
  
  :NewCharacter 
    /ini "${PCini}" ${Me.Name} AutoLoot 0 
    /ini "${PCini}" ${Me.Name} OpenCorpse 0 
    /ini "${PCini}" ${Me.Name} DefaultMeleeDistance 13 
      
    /ini "${PCini}" ${Me.Name} MeleeAttack_1 NONE 
    /ini "${PCini}" ${Me.Name} MeleeAttack_2 NONE 
    /ini "${PCini}" ${Me.Name} MeleeAttack_3 NONE 

    /ini "${PCini}" ${Me.Name} ClickItem_1 NONE 
    /ini "${PCini}" ${Me.Name} ClickItemSlot_1 NONE 
    /ini "${PCini}" ${Me.Name} ClickItemSpell_1 NONE 
    /ini "${PCini}" ${Me.Name} ClickItem_2 NONE 
    /ini "${PCini}" ${Me.Name} ClickItemSlot_2 NONE 
    /ini "${PCini}" ${Me.Name} ClickItemSpell_2 NONE 
    /ini "${PCini}" ${Me.Name} ClickItem_3 NONE 
    /ini "${PCini}" ${Me.Name} ClickItemSlot_3 NONE 
    /ini "${PCini}" ${Me.Name} ClickItemSpell_3 NONE 
    /ini "${PCini}" ${Me.Name} ClickItem_4 NONE 
    /ini "${PCini}" ${Me.Name} ClickItemSlot_4 NONE 
    /ini "${PCini}" ${Me.Name} ClickItemSpell_4 NONE 
    /ini "${PCini}" ${Me.Name} ClickItem_5 NONE 
    /ini "${PCini}" ${Me.Name} ClickItemSlot_5 NONE 
    /ini "${PCini}" ${Me.Name} ClickItemSpell_5 NONE 
    /ini "${PCini}" ${Me.Name} ClickItem_6 NONE 
    /ini "${PCini}" ${Me.Name} ClickItemSlot_6 NONE 
    /ini "${PCini}" ${Me.Name} ClickItemSpell_6 NONE 
    /ini "${PCini}" ${Me.Name} ClickItem_7 NONE 
    /ini "${PCini}" ${Me.Name} ClickItemSlot_7 NONE 
    /ini "${PCini}" ${Me.Name} ClickItemSpell_7 NONE 
    /ini "${PCini}" ${Me.Name} ClickItem_8 NONE 
    /ini "${PCini}" ${Me.Name} ClickItemSlot_8 NONE 
    /ini "${PCini}" ${Me.Name} ClickItemSpell_8 NONE 
    
    /ini "${PCini}" ${Me.Name} RestSpellName_1 NONE 
    /ini "${PCini}" ${Me.Name} RestSpellBuff_1 NONE 
    /ini "${PCini}" ${Me.Name} RestSpellName_2 NONE 
    /ini "${PCini}" ${Me.Name} RestSpellBuff_2 NONE 
    /ini "${PCini}" ${Me.Name} RestSpellName_3 NONE 
    /ini "${PCini}" ${Me.Name} RestSpellBuff_3 NONE 
    /ini "${PCini}" ${Me.Name} RestSpellName_4 NONE 
    /ini "${PCini}" ${Me.Name} RestSpellBuff_4 NONE 
    /ini "${PCini}" ${Me.Name} RestSpellName_5 NONE 
    /ini "${PCini}" ${Me.Name} RestSpellBuff_5 NONE 
    /ini "${PCini}" ${Me.Name} RestSpellName_6 NONE 
    /ini "${PCini}" ${Me.Name} RestSpellBuff_6 NONE 
    /ini "${PCini}" ${Me.Name} RestSpellName_7 NONE 
    /ini "${PCini}" ${Me.Name} RestSpellBuff_7 NONE 
    /ini "${PCini}" ${Me.Name} RestSpellName_8 NONE 
    /ini "${PCini}" ${Me.Name} RestSpellBuff_8 NONE 
    
    /ini "${PCini}" ${Me.Name} InstantClickItem_1 NONE 
    /ini "${PCini}" ${Me.Name} InstantClickItemSlot_1 NONE 
    /ini "${PCini}" ${Me.Name} InstantClickItemSpell_1 NONE 
    /ini "${PCini}" ${Me.Name} InstantClickItem_2 NONE 
    /ini "${PCini}" ${Me.Name} InstantClickItemSlot_2 NONE 
    /ini "${PCini}" ${Me.Name} InstantClickItemSpell_2 NONE 
    /ini "${PCini}" ${Me.Name} InstantClickItem_3 NONE 
    /ini "${PCini}" ${Me.Name} InstantClickItemSlot_3 NONE 
    /ini "${PCini}" ${Me.Name} InstantClickItemSpell_3 NONE 
    /ini "${PCini}" ${Me.Name} InstantClickItem_4 NONE 
    /ini "${PCini}" ${Me.Name} InstantClickItemSlot_4 NONE 
    /ini "${PCini}" ${Me.Name} InstantClickItemSpell_4 NONE 
    /ini "${PCini}" ${Me.Name} InstantClickItem_5 NONE 
    /ini "${PCini}" ${Me.Name} InstantClickItemSlot_5 NONE 
    /ini "${PCini}" ${Me.Name} InstantClickItemSpell_5 NONE 
    /ini "${PCini}" ${Me.Name} InstantClickItem_6 NONE 
    /ini "${PCini}" ${Me.Name} InstantClickItemSlot_6 NONE 
    /ini "${PCini}" ${Me.Name} InstantClickItemSpell_6 NONE 
    /ini "${PCini}" ${Me.Name} InstantClickItem_7 NONE 
    /ini "${PCini}" ${Me.Name} InstantClickItemSlot_7 NONE 
    /ini "${PCini}" ${Me.Name} InstantClickItemSpell_7 NONE 
    /ini "${PCini}" ${Me.Name} InstantClickItem_8 NONE 
    /ini "${PCini}" ${Me.Name} InstantClickItemSlot_8 NONE 
    /ini "${PCini}" ${Me.Name} InstantClickItemSpell_8 NONE 

  /echo ${Me.Name} has been added to ${PCini}. Please re-run macro (also go edit ${PCini}) 
/endmacro 
  
  :mainloop 
  
  /doevents 
    /if (${Me.Combat}) /call Attack 
     
  /goto :mainloop 
/endmacro 

Sub attack 
  :attackCheck 
    /if (!${Target.Type.Equal["NPC"]}) { 
      /attack off 
      /return 
      } 

    /if (${Target.Distance}>150) /attack off 

  :attackSetup 
    /varset MobID ${Target.ID} 

  :attackPreFight 
    /call ClearReturn 
    /if (${Me.Pet.ID}) /pet attack 

    /varset MeleeDistance ${Ini[${NPCini},${Zone.ShortName},${Target.CleanName}.DistanceMelee]} 
    /if (${MeleeDistance.Equal[NULL]}) { 
      /ini "${NPCini}" "${Zone.ShortName}" "${Target.CleanName}.DistanceMelee" "${DefaultMeleeDistance}" 
      /varset MeleeDistance ${Ini[${NPCini},${Zone.ShortName},${Target.CleanName}.DistanceMelee]} 
      } 

  :attackMeleeLoop 
    /doevents slain 
    /doevents RageOn 
    /doevents MobGate 
    /doevents StunON 
    /doevents ToggleTank 
    /doevents TankThisRound 
    /if (${Target.ID}!=${MobID}) /goto :attackend 
	/if (${Me.Class.Name.Equal[Monk]}) {
		/if (!${Me.Buff[Celestial Tranquility].ID} && !${Me.Buff[Speed of Vallon].ID} && !${Me.Buff[Vallon's Quickening].ID}) /cast item "Celestial Fists" 
	}
    /if (${Macro.Return.Equal["EndATK"]}) /goto :attackend 
    /if (!${Me.Combat}) /goto :attackend 
    /if (${Target.ID}==${MobID}) /if (!${Me.Casting.ID} && ${Me.FeetWet})  /face fast 
    /if (${Target.ID}==${MobID}) /if (!${Me.Casting.ID} && !${Me.FeetWet}) /face fast nolook 
    /if (${Target.ID}==${MobID} && !${Me.Casting.ID}) /if (${Target.Distance}>${MeleeDistance}) /keypress FORWARD HOLD 
    /if (${Target.ID}==${MobID} && !${Me.Casting.ID}) /if (${Target.Distance}<=${MeleeDistance}) /keypress FORWARD 
    /if (${Target.ID}==${MobID} && !${Me.Casting.ID}) /if (${Target.Distance}<=${Math.Calc[${MeleeDistance}-5]}) /keypress BACK HOLD 
    /if (!${MeleeAttack_1.Equal[NONE]}) /if (!${Me.Casting.ID}) /if (${Target.Distance}<=${MeleeDistance}) /if (${Me.AbilityReady[${MeleeAttack_1}]}) /doability ${MeleeAttack_1} 
    /if (!${MeleeAttack_2.Equal[NONE]}) /if (!${Me.Casting.ID}) /if (${Target.Distance}<=${MeleeDistance}) /if (${Me.AbilityReady[${MeleeAttack_2}]}) /doability ${MeleeAttack_2} 
    /if (!${MeleeAttack_3.Equal[NONE]}) /if (!${Me.Casting.ID}) /if (${Target.Distance}<=${MeleeDistance}) /if (${Me.AbilityReady[${MeleeAttack_2}]}) /doability ${MeleeAttack_3} 
    /if (${TankToggle.NotEqual[NULL]}) /if (!${Me.Casting.ID}) /if (${Target.Distance}<=${MeleeDistance}) /if (${Me.AbilityReady[Tank]}) /doability "Tank" 

    |/if (${Me.Class.Name.Equal[Shadow Knight]}) /if (${Target.ID}==${MobID}) /if (!${Me.Casting.ID}) /if (${Target.Distance}<=${MeleeDistance}) /goto :attackSpellsSK 
  /goto :attackMeleeLoop 

  :attackSpellsSK 
    /if (${Me.Gem[Zevfeer's Bite]}>0) /if (${Me.PctMana}>20) /if (${Target.PctHPs}<90) /call cast "Zevfeer's Bite" 
    /if (${Me.Gem[Aura of Hate]}>0) /if (${Me.PctMana}>20) /if (${Target.PctHPs}<90) /call cast "Aura of Hate" 
    /if (${Me.Gem[Spear of Decay]}>0) /if (${Me.PctMana}>50) /if (${Target.PctHPs}<90) /call cast "Spear of Decay" 
    /if (${Me.Gem[Spear of Plague]}>0) /if (${Me.PctMana}>50) /if (${Target.PctHPs}<90) /call cast "Spear of Plague" 
    /if (${Me.PctHPs}<90) /if (!${Me.Buff[Bond of Death Recourse]}) /if (${Me.Gem[Bond of Death]}>0)  /if (${Me.PctMana}>20) /if (${Target.PctHPs}<90) /call cast "Bond of Death" 
  /goto :attackMeleeLoop 

  :attackend 
    /if (${OpenCorpse}==1) { 
    /doevents slain 
      } 
    /varset MobID 0 
    /if (${TankToggle.NotEqual[NULL]}) /varset TankToggle NULL 
    /attack off 
    /pet backoff 
    /pet hold 
    /keypress FORWARD 
/return 

Sub ClearReturn 
/return NULL 

Sub event_slain 
  /if (${Target.CurrentHPs}>0) /return 
  /if (${OpenCorpse}==0) /return EndATK 
  |/if (${Target.Type.NotEqual[Corpse]}) 
  /target id ${MobID} 
  /loot 
  /keypress FORWARD 
  /loot 
  /loot 
  /loot 
/return EndATK 

Sub event_RageOn 
  /if (${Target.CurrentHPs}>15) /return 
  /if (${Target.CurrentHPs}==0) /return 
  /if (${Target.ID}==${MobID}) /if (!${Me.Casting.ID}) /keypress FORWARD 
  /call ClearReturn 
  /echo Rage On 
  /attack off 
  /pet back off 
  /pet hold 
  /call ClearReturn 

  :waitRage 
    /doevents 
    /if (${Target.ID}!=${MobID}) /return EndATK 
    /if (${Macro.Return.Equal["EndATK"]}) /return EndATK 
    /if (${Macro.Return.Equal["RageOFF"]}) /return 
/goto :waitRage 

Sub event_RageOFF 
  /echo Rage OFF 
  /attack on 
/return RageOFF 

Sub event_MobGate 
  /if (${Target.Distance}<100) /return 
  /echo MOB GATED! 
  /attack off 
/return EndATK 

Sub event_Invited 
  /invite 
/return 

Sub event_StunON 
  /doevents flush StunOFF 
  /call ClearReturn 

  :LoopStunOFF 
    /doevents StunOFF 
    /if (${Macro.Return.Equal["StunOFF"]}) { 
    /call ClearReturn 
    /return 
      } 
/goto :LoopStunOFF 

Sub event_StunOFF 
/return StunOFF 

Sub event_TankThisRound 
  /if (${TankToggle.NotEqual[Yes]}) /if (${MeleeAttack_1.NotEqual[Tank]}) /if (${MeleeAttack_2.NotEqual[Tank]}) /if (${MeleeAttack_3.NotEqual[Tank]) { 
  /echo Tanking this round against %t 
  /varset TankToggle Yes 
    } 
/return 

Sub event_ToggleTank 
  /if (${MeleeAttack_1.Equal[Tank]}) { 
    /varset MeleeAttack_1 NULL 
    /echo Will no longer Tank. 
    /return 
    } 
  /if (${MeleeAttack_2.Equal[Tank]}) { 
    /varset MeleeAttack_2 NULL 
    /echo Will no longer Tank. 
    /return 
    } 
  /if (${MeleeAttack_3.Equal[Tank]}) { 
    /varset MeleeAttack_3 NULL 
    /echo Will no longer Tank. 
    /return 
    } 
  /if (${MeleeAttack_1.Equal[NULL]}) { 
    /varset MeleeAttack_1 Tank 
    /echo Auto ${MeleeAttack_1} when availiable. 
    /return 
    } 
  /if (${MeleeAttack_2.Equal[NULL]}) { 
    /varset MeleeAttack_2 Tank 
    /echo Auto ${MeleeAttack_2} when availiable. 
    /return 
    } 
  /if (${MeleeAttack_3.Equal[NULL]}) { 
    /varset MeleeAttack_3 Tank 
    /echo Auto ${MeleeAttack_3} when availiable. 
    /return 
    } 
/return 

Sub event_ToggleOpenCorpse 
  /if (${OpenCorpse}==0) { 
    /varset OpenCorpse 1 
    /echo OpenCorpse On 
    /return 
    } 
  /if (${OpenCorpse}==1) { 
  /varset OpenCorpse 0 
    /echo OpenCorpse Off 
    } 
/return 

Sub Event_AddMaster(string Line) 
  /declare index int local 
  /if (${Line.Arg[3].Length}) { 
    /for index 1 to 20 
      /if (${Ini[stick-pc.ini,Masters,Controller${index}].Equal[Nobody]}) { 
        /ini "stick-pc.ini" "Masters" "Controller${index}" "${Line.Arg[3]}" 
        /echo ** ${Line.Arg[3]} added as a controller... 
        /goto :FallOut 
      } 
    /next index 
    /echo ** Master controller slots all filled! Get rid of some! 
  } else { 
    /echo ** Huh? 
  } 
  :FallOut 
/return 

Sub Event_RemMaster(string Line) 
  /declare index int local 
  /if (${Line.Arg[3].Length}) { 
    /for index 1 to 20 
      /if (${Ini[stick-pc.ini,Masters,Controller${index}].Equal[${Line.Arg[3]}]}) { 
        /ini "stick-pc.ini" "Masters" "Controller${index}" "Nobody" 
        /echo ** ${Line.Arg[3]} removed from controller list... 
        /goto :FallOut 
      } 
    /next index 
    /echo ** Can't find ${Line.Arg[3]} in access list! 
  } else { 
    /echo ** Huh? 
  } 
  :FallOut 
/return 

Sub Event_Chat(ChatType, Sender, ChatText) 
  |- Authenticate if valid controller 
  /declare authorized bool local FALSE 
  /declare index int local
  /for index 1 to 20 
    /if (${Ini[stick-pc.ini,Masters,Controller${index}].Equal[${Sender}]}) /varset authorized TRUE 
  /next index
  /if (${authorized} && ${ChatText.Left[1].Equal[/]}) { 
    /echo ** User ${Sender} Authenticated! 
    /echo Action --> "${ChatText}" 
    /if (${Me.AFK}) /delay 2s 
    /tell ${Sender} Command received, performing: ${ChatText} 
    /docommand ${ChatText} 
  } 
/return 



error?

Posted: Fri Jul 02, 2004 4:45 pm
by darkbastar
getting this error not sure whats up

unparsable in calculation:'g'
stick.mac@196(attack): if ${target.distance}>150/attack off
stick.mac@184(main):/if(${me.combat})/call attack

fail to parse /if condition '(46.73>150)',non-numeric encountered

if anyone could help i'd appreicated it =)

Posted: Fri Jul 02, 2004 4:46 pm
by aChallenged1
the greater than and less than are showing as HTML

go through and change all < to < and all > to >

Then it should be ok. This is a know issue and has been posted about plenty already. People who have posted code need to go through and make corrections to their code.

Posted: Fri Jul 02, 2004 5:16 pm
by darkbastar
thank you so much for the speedy response yes it did fix it ~ thanks =)

re: fix...

Posted: Sat Jul 03, 2004 7:50 pm
by bushdaka
In the melee attack area, the 3rd melee auto attack check is wrong. Both the 2nd and 3rd one trigger on the status of the 2nd one. I'm not sure how to paste the fix but the 3rd melee check for status needs check the 3rd melee status, not the 2nd one. Line 250. <g> Clear as mud.

Posted: Tue Jul 06, 2004 2:20 am
by Seariz
Hello, I have two questions. First of all could someone post on how exactly to make the insta click line work with monk epic, It doesn’t seem to be working properly for me (or at all for that matter). Second of all, I was wondering if some kind person would know of how to include a bard twist macro into this code, so that It could keep the bard at mele distance, attacking etc and also twist the 4 group songs. Thank you in advance!