Macro: could someone alter this please?

smak

Lifetimer
Joined
Jul 28, 2008
Messages
3
Reaction score
0
Points
0
this should be pretty simple for most, but i for some reason can't get it to work.

only thing i need this to do is to change it from toons responding to group say to raid say.

right now the macro works perfect for group members, for follow, stop and assist, but i wanna be able to create a raid and give this command in /raidsay and have them do the same thing, follow, stop and assist.

i changed all the group related text to raid, but i can't the other toons running the maro to respond, i assume it's becasue they are looking for a "group member" to follow or take orders from.

i know there may be other plugins and macros out there that might already do this , but i would like this particular macro to work.

Thanks in advance. =)


Macro:
Code:
#turbo

#include spell_routines.inc
Sub Main
	/declare chatchan string outer
        /varset chatchan /g
	/declare i int outer
	/declare fol int outer
	/varset fol 0
	/declare foltarg string outer
	/declare loopclass string outer
	/declare CH int outer
	/varset CH 65


	|+++++++++++++++++++++++++++++++++
	|      Main Loop
	|+++++++++++++++++++++++++++++++++
	:Loop

		|+++++++++++++++++++++++++++++++++
		|      Follow check
		|+++++++++++++++++++++++++++++++++
		/if (${fol}) {
			/face ${foltarg} fast
			/if (${Group.Member[${Group.Member[${foltarg}]}].Spawn.Distance}>10) /keypress up hold
      			/if (${Group.Member[${Group.Member[${foltarg}]}].Spawn.Distance}<10) /keypress up
			/doevents
		} 


		/delay 1
		/doevents
	/goto :Loop
/return
#event follow "#1# tells the group, 'follow'"
#event stop "#1# tells the group, 'stop'"
#event assist "#1# tells the group, 'assist'"
Sub Event_follow
	/varset fol 1
	/varset foltarg ${Param1}
	/doevents
/return

Sub Event_stop
   /varset fol 0
   /if (${Me.Moving}) {
	/keypress forward
	/keypress back
	/delay 8
   }
   /keypress esc
   /doevents
/return

Sub Event_assist
	/keypress ]
	/doevents
/return
 
Last edited by a moderator:
Would you mind posting your attempted conversion?
 
add:

Code:
#event follow "#1# tells the [COLOR=yellow]raid[/COLOR], 'follow'"
#event stop "#1# tells the [COLOR=yellow]raid[/COLOR], 'stop'"
#event assist "#1# tells the [COLOR=yellow]raid[/COLOR], 'assist'"
 
add:

Code:
#event follow "#1# tells the [COLOR=yellow]raid[/COLOR], 'follow'"
#event stop "#1# tells the [COLOR=yellow]raid[/COLOR], 'stop'"
#event assist "#1# tells the [COLOR=yellow]raid[/COLOR], 'assist'"

as i said before, i have tried the obvious and it does not work.

saying the command in raid does not trigger the action because the follow check still looks for a group member who just gave the order not a raid member

Code:
|+++++++++++++++++++++++++++++++++
| Follow check
|+++++++++++++++++++++++++++++++++
/if (${fol}) {
/face ${foltarg} fast
/if (${Group.Member[${Group.Member[${foltarg}]}].Spawn.Distance}>10) /keypress up hold
/if (${Group.Member[${Group.Member[${foltarg}]}].Spawn.Distance}<10) /keypress up
/doevents
}

changing the Group.Member to Raid.Member will not work either.
 
Last edited by a moderator:
add:

Code:
#event follow "#1# tells the [COLOR=yellow]raid[/COLOR], 'follow'"
#event stop "#1# tells the [COLOR=yellow]raid[/COLOR], 'stop'"
#event assist "#1# tells the [COLOR=yellow]raid[/COLOR], 'assist'"

as i said before, i have tried the obvious and it does not work.

saying the command in raid does not trigger the action because the follow check still looks for a group member who just gave the order not a raid member

Code:
|+++++++++++++++++++++++++++++++++
| Follow check
|+++++++++++++++++++++++++++++++++
/if (${fol}) {
/face ${foltarg} fast
/if (${Group.Member[${Group.Member[${foltarg}]}].Spawn.Distance}>10) /keypress up hold
/if (${Group.Member[${Group.Member[${foltarg}]}].Spawn.Distance}<10) /keypress up
/doevents
}

changing the Group.Member to Raid.Member will not work either.


Perhaps there is another route to go, though not a macro it is actually more useful if you ask me.

EQBC - Don't know if you've looked into this yet, but it is rather simple to use.


####Load the plugin####
/plugin mq2eqbc


####Connect to the server {(Default 127.0.0.1:2112)This is "home" ip, or the computer your running the server on, to connect to this computer from another computer on the network, simply goto start>run (or the search box via vista/win7) and type CMD, this will give you a command prompt, type "/ipconfig" and get your IP address {This will be the IP your router assigns you}, this shouldn't require port forwarding for connecting computer inside of your network. so as long as it is on the same router then you have no worries :-D. ####
/bccmd connect

###There are a few commands of interest, you can make hotkeys to do this###
/bcaa
Example/Definition: tells all characters including the person sending the msg to the server to do said instruction, IE: /bcaa //target npc named, this will cause all characters (regardless of how many) to target the nearest named NPC. basically // is used instead of / for the command /target.

/bca
Example/Definition: /bca //target yournamehere, this will cause all but the person sending the message to /target yournamehere, this is good for setting up hotkeys to do things like /warp to your location, multiple lines of information sent to the EQBC via hotkey. IE:
####
/bca //target yournamehere
/pause 1
/bca //warp t
/pause 1
/bca //assist tank
####

there is so much use you can find in the EQBC local server. There are more complicated methods to using this particular server such as remotely controlling a friends character who they have logged in china for you to play in the US. Simply goto www.whatismyip.com or something similar if you don't know your IP address (not your routers IP but your Modems) and you can have something like port forwarding set up on your router. /bccmd connect 68.19.6.92:5432 with your router set up with port forwarding to forward port 5432 to the computer that you are running the server on, if you use that from an outside location and connect then you now have access to control characters outside of your local network. Great for helping friends etc etc, I could talk all day....or you could look at the wiki....I realize that I've thrown a lot of info at you but to me seems better than running a macro...unless of course you setting up for merc killing via afk using an auto assist macro :-D

Anyway, not fixing your macro but hope that helped.
 
I took a stab - untested -

Changed if statements to use the spawn TLO to check your distance. Check the wiki for TLO's for lots of good stuff to use in your macros.

Macro:
Code:
#turbo

#include spell_routines.inc
Sub Main
	/declare chatchan string outer
        /varset chatchan /g
	/declare i int outer
	/declare fol int outer
	/varset fol 0
	/declare foltarg string outer
	/declare loopclass string outer
	/declare CH int outer
	/varset CH 65


	|+++++++++++++++++++++++++++++++++
	|      Main Loop
	|+++++++++++++++++++++++++++++++++
	:Loop

		|+++++++++++++++++++++++++++++++++
		|      Follow check
		|+++++++++++++++++++++++++++++++++
		/if (${fol}) {
			/face ${foltarg} fast
			/if ( ${Spawn[pc ${foltarg}].Distance >10) /keypress up hold
      			/if ( ${Spawn[pc ${foltarg}].Distance < 10) /keypress up
			/doevents
		} 


		/delay 1
		/doevents
	/goto :Loop
/return
#event follow "#1# tells the group, 'follow'"
#event stop "#1# tells the group, 'stop'"
#event assist "#1# tells the group, 'assist'"
#event follow "#1# tells the raid, 'follow'"
#event stop "#1# tells the raid, 'stop'"
#event assist "#1# tells the raid, 'assist'"

Sub Event_follow
        /echo Got follow event
	/varset fol 1
	/varset foltarg ${Param1}
	/doevents
/return

Sub Event_stop
        /echo Got stop event
   /varset fol 0
   /if (${Me.Moving}) {
	/keypress forward
	/keypress back
	/delay 8
   }
   /keypress esc
   /doevents
/return

Sub Event_assist
        /echo Got assist event
	/keypress ]
	/doevents
/return
 
I took a stab - untested -

Changed if statements to use the spawn TLO to check your distance. Check the wiki for TLO's for lots of good stuff to use in your macros.

Macro:
Code:
#turbo

#include spell_routines.inc
Sub Main
	/declare chatchan string outer
        /varset chatchan /g
	/declare i int outer
	/declare fol int outer
	/varset fol 0
	/declare foltarg string outer
	/declare loopclass string outer
	/declare CH int outer
	/varset CH 65


	|+++++++++++++++++++++++++++++++++
	|      Main Loop
	|+++++++++++++++++++++++++++++++++
	:Loop

		|+++++++++++++++++++++++++++++++++
		|      Follow check
		|+++++++++++++++++++++++++++++++++
		/if (${fol}) {
			/face ${foltarg} fast
			/if ( ${Spawn[pc ${foltarg}].Distance >10) /keypress up hold
      			/if ( ${Spawn[pc ${foltarg}].Distance < 10) /keypress up
			/doevents
		} 


		/delay 1
		/doevents
	/goto :Loop
/return
#event follow "#1# tells the group, 'follow'"
#event stop "#1# tells the group, 'stop'"
#event assist "#1# tells the group, 'assist'"
#event follow "#1# tells the raid, 'follow'"
#event stop "#1# tells the raid, 'stop'"
#event assist "#1# tells the raid, 'assist'"

Sub Event_follow
        /echo Got follow event
	/varset fol 1
	/varset foltarg ${Param1}
	/doevents
/return

Sub Event_stop
        /echo Got stop event
   /varset fol 0
   /if (${Me.Moving}) {
	/keypress forward
	/keypress back
	/delay 8
   }
   /keypress esc
   /doevents
/return

Sub Event_assist
        /echo Got assist event
	/keypress ]
	/doevents
/return


No go, but appreciate you taking a crack at it.