- Joined
- Jan 3, 2006
- Messages
- 344
- Reaction score
- 0
- Points
- 0
Taron need you help or Booges adapting a mac for Rikki, Booges wrote a macro for Trial of foresight i am trying to adapt it so as my first macro here goes. i need help with the move commands
Code:
|------------------ Rikkukin.mac -----------------|
|--------------------- 8/16/06 -------------------|
|Macro by Gladimus
#Chat Chat
#event goLeft "#*#Rikkukin pulls his right arm back, preparing to cut a swathe through his opponents with his razor sharp claws.#*#"
#event goRight "#*#Rikkukin pulls his left arm back, preparing to cut a swathe through his opponents with his razor sharp claws.#*#"
#event goBack "#*#Rikkukin rears backs and fills his lungs, preparing to exhale a cone of ice.#*#"
#event goFront "#*#Rikkukin twirls his tail, preparing to sweat away those foolish enough to take up position behind him.#*#"
#event goTurn "#*#Rikkukin twists his body so that the ambient light starts to reflect from his silvery scales.#*#"
Sub Main
|--------------- READ THIS SECTION AND EDIT -----------------|
/declare Verbose outer 0
/declare raidchannel string outer CHANNEL
|---------------------------------------------------------------|
/declare useExch outer
/declare useMove outer
/declare leftFlag string outer 0
/declare rightFlag string outer 0
/declare backFlag string outer 0
/declare frontFlag string outer 0
/declare turnFlag string outer 0
/If (${Bool[${Plugin[mq2exchange]}]}) /varset useExch 1
/If (${Bool[${Plugin[mq2moveutils]}]}) /varset useMove 1
/If (${raidchannel}) /join ${raidchannel}
/If (!${useExch}) /echo Warning! You do not have MQ2Exchange Loaded
/If (!${useMove}) /echo Warning! You do not have MQ2MoveUtils Loaded
:mainloop
/doevents
/goto :mainloop
|---------------- Emote Trigger ------------------------|
Sub Event_goLeft
/varset leftFlag 1
/If (${Verbose}) /chat #(${raidchannel}) MOVE:::::LEFT:::::
/popup MOVE LEFT
/If (${useMove}==1) /MoveTo loc ${}
:wait1
/doevents stopLeft
/goto :wait1
/return
Sub Event_goRight
/varset RightFlag 1
/If (${Verbose}) /chat #(${raidchannel}) MOVE:::::RIGHT:::::
/popup MOVE RIGHT!
/If (${useMove}==1) /MoveTo loc ${}
:wait2
/doevents stopRight
/goto :wait2
/return
Sub Event_goBack
/varset backFlag 1
/If (${Verbose}) /chat #(${raidchannel}) MOVE:::::BEHIND:::::
/popup MOVE BEHIND
/If (${useMove}==1) /MoveTo loc ${}
:wait3
/doevents stopBack
/goto :wait3
/return
Sub Event_goFront
/varset frontFlag 1
/If (${Verbose}) /chat #(${raidchannel}) MOVE:::::FRONT:::::
/popup MOVE FRONT!
/If (${useMove}==1) /MoveTo loc ${}
:wait4
/doevents stopFront
/goto :wait4
/return
Sub Event_goTurn
/varset TurnFlag 1
/If (${Verbose}) /chat #(${raidchannel}) TURN::::::AWAY
/popup TURN AWAY!
/If (${useMove}==1) /MoveTo loc ${}
:wait5
/doevents stopTurn
/goto :wait5
/return
|------------ Emote Complete --------------|
Sub event_stopLeft
/varset leftFlag 0
/doevents flush
/return
Sub event_stopRight
/varset rightFlag 0
/doevents flush
/return
Sub event_stopBack
/varset backFlag 0
/doevents flush
/return
Sub event_stopFront
/varset frontFlag 0
/doevents flush
/return
Sub event_stopTurn
/varset turnFlag 0
/doevents flush
/return