Log in

View Full Version : AddOn to follow your variable MainChar



tequilale
08-27-2007, 06:56 AM
Hey there! I was doing an addon, taht allow me to follow my MainChar with one KeyStroke. If my main dies, i use the other charakter and press this following-key. Thats it.

Here are the source and filesnames if you are interessted:

Multi.lua
[code:1]
function Multi_OnEvent()
if(arg1 == "Multifollow") then
FollowUnit(arg2);
end
end
[/code:1]

Multi.toc
[code:1]## Interface: 20100
## Title: MultiboxerFollowing
## Notes: thats it
Multi.xml[/code:1]

Multi.xml
[code:1]<Ui xmlns="http://www.blizzard.com/wow/ui/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.blizzard.com/wow/ui/
..\FrameXML\UI.xsd">
<Script file="Multi.lua"/>

<Frame name="Multi" parent="UIParent" hidden="false">
<Scripts>
<OnLoad>
this:RegisterEvent("CHAT_MSG_ADDON");
</OnLoad>
<OnEvent>
Multi_OnEvent();
</OnEvent>
</Scripts>
</Frame>
</Ui>[/code:1]


Now, you have to setup a macro at each wow-client and bind a key to it, let us say "t".
The macro are:
[code:1]/script SendAddonMessage( "Multifollow", UnitName("player"), "RAID" );[/code:1]

how will it work?
Simple. you press "t" and your player sends your name via addonmessagechannel to all other members of your party/raid. the other clients receive this and follows the name of the "keypresser".

works only if all of your mates are in a party. enjoy!

beyond-tec
08-27-2007, 07:06 AM
yay! nice one.

thank you for sharing

Thun
08-27-2007, 02:26 PM
Very very nice addon :D

mmcookies
08-27-2007, 03:23 PM
does this work in combat?

tequilale
08-27-2007, 04:53 PM
@mmcookies

sure

Xzin
08-27-2007, 05:06 PM
Can you not just use focus?

Thun
08-27-2007, 05:40 PM
Can you not just use focus?
i think its nice not to use focus for follow, i would rather use focus for CC

tequilale
08-28-2007, 03:02 AM
This addon don't use focus OR target. both will be available. It's only to follow a variable mainchar.

wolviex
08-28-2007, 03:33 PM
confused on what to do to use ur addon

Ughmahedhurtz
08-28-2007, 03:51 PM
confused on what to do to use ur addon

See this line:

[code:1]/script SendAddonMessage( "Multifollow", UnitName("player"), "RAID" );[/code:1]

That sends a message to your other group members. If they have the mod installed, they will set their /follow target to whoever sent the message. So, bind that to a key/button on each machine. Want to switch leaders, just press that button on the machine you want to be leader and voila.

At least, that's how it should work in theory. Haven't tested it myself. :P

wolviex
08-28-2007, 04:37 PM
ok, where is the mod? where i download from or do i need to create it? i dont know how to do that part

Lost Ninja
08-28-2007, 09:58 PM
You make it from the listed code in the first post.

However this is that already done.

multi.zip (http://files.incessant-logic.net/games/WoW/multi.zip)

Just install as a normal addon.

Ughmahedhurtz
08-28-2007, 10:21 PM
Thanks for knocking that together for us, Ninja! Pays to check the forums often. :D

Ughmahedhurtz
08-28-2007, 10:36 PM
OK, my take on this is that it is nifty for purely solo PVE where movement isn't a big deal. For PVP, it will be marginally useful. The biggest problem is that you need a separate movement key bound to each player in cases where follow will break at random/unexpected times.

The idea is simple and interesting, though. Might come in handy for other mods that make slightly different use of the concept. ;)

[edit] ANd yes, this does work in combat.

tequilale
08-29-2007, 06:01 AM
Thanks ninja for creating a zip file ;-)

I'm working on a targeting addon as well, but it seem a little bit harder to done.
If anyone have an idea to do this without using 5 keys and 5 different macros, tell me your idea!

actually i use this macrocode:

/tar [target=3rdchar,nodead]
/tar [target=2rdchar,nodead]
/tar [target=1rdchar,nodead]
/assist

Background:
I have a fix sequence which i play my mates. first of all my main. if he dies, i try to use the second, third etc.... the following is no problem at all with my addon. BUT, the targeting...... everytime i use a spell, the macro above will fire. so it'll check, if my main is dead, the second char will be the main to assist. that works, but sometimes if i will heal a target, my toons will heal themself oder the lasttarget. only at the second cast it will be target correctly.
Any idea?

Atsuki
08-29-2007, 08:49 AM
Server lag on /assist?

tequilale
08-29-2007, 12:19 PM
Server lag on /assist?

hmm, could be possible. if i fire a spell, the macro would be run every time via an other keypress by ahk.

should i change this abd create a macro for all spells and use the targeting macro bevor the spell-line? would this help?