PDA

View Full Version : [Addon] WhisperRelay - v1.0



The IT Monkey
04-02-2008, 09:10 PM
New Addon: WhisperRelay - v1.0
Inspired by Falkor's "SilentWhisper -v0.1.1" ('http://www.dual-boxing.com/forums/index.php?page=Thread&threadID=4886')

Update: WhisperRelay has been updated.
What's new for Version 1.0:
1) You can now set the text that is displayed before the name of the person who sent you the text. Previously it was set to "Message from" and that is still the default. But you can now change it to whatever you like via /wr wrtext <Whatever text you like">. Short or long, you decide.

And that's it. The other suggestion regarding "what happens if I get a BUNCH of tells on my alt?" and how to handle that would require me knowing a lot more code than I know at the current time. So, this is version 1.0. I'll keep working on finding a solution for the above but if/when that happens it will be for version 2.

What it does: Relays whispers sent to your alts to your main. Allows your main to reply as alt. Invisible to the original person who whispered your alt.

Example: Joe whispers Alt "Hello"
Alt receives: "[Joe] Whispers: Hello"
Alt relays whisper to your main.
Main receives: "[alt] Whispers: Message from [Joe]: Hello"
Main replies with: "/r What's up?"
Alt recieves: "[Main] Whispers: What's up?"
Alt relays whisper to Joe.
Joe receives: "[alt] Whispers: What's up?"

For the above example just pretend alt and main are your character names.
As you can see it's invisible to Joe... he is having a conversation with Alt. It is also invisible to you as the player in that you don't have to do anything other than you normally would when replying to a whisper.

Installation:
Download WhisperRelay ('http://www.theitmonkey.com/files/mbmods/WhisperRelay.zip') Unzip Copy WhisperRelay to your addon directory in WoW. (You must put it in the addon directory of every instance of WoW you are running. Even your main's.) Enable the Addon and run WoWConfiguration:
Configuration is very easy. Type /whisperrelay (or /wr) for a list of options. There are only two. Turning it off and setting your main. To set your main type "/wr main <name>" (without the quotes and replace <name> with the name of your main character). WhisperRelay remembers the name on each of your characters on a per character basis. This means you can set them main for character A (acount 1) and have it be different from character B (account 1). YOU MUST SET THE MAIN FOR ALL CHARACTERS INCLUDING YOUR MAIN. This means your main will set his main to himself. This is so you don't get an endless loop thing going and crash the world.

Pros of WhisperRelay:
1- Set your main from within game. (No having to manually edit the .lua file).
2- Remembers mains on a per team bassis. (Team A can have a different main than Team B and it remembers that.)

Cons of WhisperRelay:
1- I built it using Ace2 Libs... which means it's bigger than SilentWhipser by a large margin. Especially if you are not running any other Ace2 Mods.


WhisperRelay v1.0 ('www.theitmonkey.com/files/mbmods/WhisperRelay.zip')

Comments, suggestions, bug reports are all welcome.

firest4rter
04-03-2008, 02:13 AM
Thanks mate, I'll down load and install shortly. I also run WIM so hopefully it will work with that. If not I can live without wim whilst boxing.

Cesare
04-03-2008, 05:46 AM
Nice addon, gonna try it!

The main thing I missed in Falkor's SW, was the inability to set a main ingame. Since I box two teams, that makes it unusable.

Would be good if you could bind a key to it.

Djarid
04-03-2008, 06:18 AM
I have added a wiki page for this...

It can be found under addons or community developed addons... I hope you don't mind IT Monkey but I think it would be a good idea to collect as many of the small addons that people create so that we can work on consolidating them into the definitive MB addon ;)

The IT Monkey
04-03-2008, 01:03 PM
Thanks mate, I'll down load and install shortly. I also run WIM so hopefully it will work with that. If not I can live without wim whilst boxing.Not sure if it works with Wim but it shouldn't interfere with it as it just communicates via whisper... so WIM should treat it as any other whisper that comes in.


Nice addon, gonna try it!

The main thing I missed in Falkor's SW, was the inability to set a main ingame. Since I box two teams, that makes it unusable.

Would be good if you could bind a key to it. Bind it how? As it is now there is only one setting you need to worry about and that is who is your main. It remembers that on a per character basis so you only need to set it once per team. I am unsure of what you wish to have bound to a key.


I have added a wiki page for this...

It can be found under addons or community developed addons... I hope you don't mind IT Monkey but I think it would be a good idea to collect as many of the small addons that people create so that we can work on consolidating them into the definitive MB addon ;) While the size of this addon is not small (weighing in at 400k with the ACE2 Libs) it is small in what it does. I am planning to work on other addons for multiboxing to bundle with it to justify using the Ace Library. Thanks for adding it to the wiki.

Maxion
04-04-2008, 01:08 PM
I believe the binding idea is so that you can change main to your active window whenever you hit your key to swap PiP window.
I would want this as well, since I have just set it up to change my follow/assist focus when I change window.

The IT Monkey
04-04-2008, 02:35 PM
Personally I wouldn't see this as very useful as I only lead from a toon other than my main in a OH SHIT moment... and if that is happening the last thing I have time for is whisper conversations.

If this is a real concern of a good number of you then I will look into it.

BTW... when setting your main... it's case sensitive... so don't for get the Capital letter at the beginning.

Ughmahedhurtz
04-04-2008, 03:43 PM
Personally I wouldn't see this as very useful as I only lead from a toon other than my main in a OH SHIT moment... and if that is happening the last thing I have time for is whisper conversations.Same here.

Ughmahedhurtz
04-04-2008, 08:41 PM
Monkey, you rule. This is a wonderful addon. ;) /highfive

The IT Monkey
04-04-2008, 09:10 PM
Wow... thanks Ughmahedhurtz ('http://www.dual-boxing.com/forums/index.php?page=User&userID=843') I appreciate the feedback. I look on it as a building block... I am hoping to add to it but only things that we multiboxers might find useful.

firest4rter
04-04-2008, 11:21 PM
I recieve messages from people whispering my alts, however when I reply to them they do not get the message. I end up having to talk to them directly from my main. I have double checked my config and disabled WIM with no success. Any ideas?

Diamndzngunz
04-05-2008, 05:22 AM
NICE! I have been wanting something like this. I was always tripping about getting a PM from a GM from and alt.

The IT Monkey
04-07-2008, 01:52 PM
I recieve messages from people whispering my alts, however when I reply to them they do not get the message. I end up having to talk to them directly from my main. I have double checked my config and disabled WIM with no success. Any ideas?firest4rter ('http://www.dual-boxing.com/forums/index.php?page=User&userID=3429'), I can't think of anything in my mod that would cause this to happen. If you are describing exactly what happens then I would say it is something else you have installed having a conflict with my mod and not knowing what you have installed I can't begin do diagnose the problem.

You're main doesn't even have to have the mod installed... I just made it to work that way for people who use one folder for all their toons.

Things to check:
Your main is set on all your toons with the proper spelling and CAPITALIZATION.
Turn off you other mods one by one and see if any of them are interfering with WhipserRelay. If so and you can tell me which one it is I can look into it and see what is going on.

Like I have said before .. it is a really simple mod. (I wouldn't have been the one to write it if it wasn't) So I can't think of what might be going wrong here. It especially puzzles me that the whispers go one way for you but not the other... the only way this would be possible is if between the time the alt gets Bob's whisper and your main's reply some other mod is reseting the "self.rply" value. But even then your alt should be sending the whisper SOMEWHERE and you should get an error saying that that player doesn't exist (if something is setting "self.rply" to something other than a player name).

Anyway... please let me know if you are still having this issue.

Thanks,
-J (The IT Monkey)

zanthor
04-07-2008, 03:02 PM
I've fired this up and use it in conjunction with my other mods with no problems, I run WIM on my main but not my alts...

Anyhow great work, the only thing I'd ask is to trim the string indicating who it's from...

Something shorter like "WR[Fromname]: whisper" would be great for me.

Question: How does it handle chatty situations? For example if two people start spamming my alt Bazan, I can reply but is it likely to cross tells? (Simply using the Reply feature on one client it would be...)

Feature Suggestion to handle that: Allow the prepending of [Targetname] in the reply, it would allow you to direct the alt to send whispers to a specific person if desired.

The IT Monkey
04-07-2008, 03:14 PM
Question: How does it handle chatty situations? For example if two people start spamming my alt Bazan, I can reply but is it likely to cross tells? (Simply using the Reply feature on one client it would be...) It would be just as you described. You would get cross tells. I designed this mod to behave JUST LIKE regular whispers. If your alt gets whispered from Tom after a whisper from Bob before your main responds to Bob then your response is going to go to Tom.


Feature Suggestion to handle that: Allow the prepending of [Targetname] in the reply, it would allow you to direct the alt to send whispers to a specific person if desired. mmmmm.... feature requests... /drooool

I'll see what I can do. Can't promise anything but I will look into it.

firest4rter
04-07-2008, 08:46 PM
I found the problem which you highlighted. The main must be set correctly, caps and all. Sorting this out fixed my problem. Thanks for an awesome mod. Combined with WIM on my main it makes it easy talking to all the WTF HOW DO YOU DO THAT ppl.

Again thanks for the great mod.

The IT Monkey
04-10-2008, 01:14 PM
WhisperRelay has been updated to Version 1.0

The only difference is now you can set the text to be displayed before the name of the person who originally sent the whisper. Before it was set to "Message from"... that is still the default setting but you can change it to whatever you like via /wr wrtext <Whatever you want here>.

The worry about "chatty situations" has not been addressed yet... I looked into it and it is a bit beyond my current level of understanding of the code involved. So I'll keep learning and when/if I figure out how to do it I will put out a 2.0

Any other suggestions for this mod please let me know. Keep the suggestions on target as far as whisper handling goes.... do go asking for WhisperRelay to "auto mobs" or help with the auction house ;)

Djarid
04-11-2008, 03:31 AM
Ok some thoughts...

instead of using /w to relay, why not use the addon channel? The information could be displayed just like a whisper (maybe a new color)

how about maintaining a stack for each group member of tells with syncronised id for each whisper?
Every relay received is stored with source id and remote unique sequence number(USN) (Can you tell I work with Active Directory? ;) )

implement a new slash command - /wr or similar that the addon will interpret, it knows which message it last displayed so when it sends the response, complete with sequence id, the addon on the clone will know to whom it should respond.

when you reply to a relayed tell, it looks up the id of that tell and sends your response over the addon channel to the client id (from the stack), including the remote USN. The remote instance looks up that tell in its own stack and replies to the relevant party.


All the whisper functions could be replicated in the addon, such as buffer history etc.

elo
04-11-2008, 10:29 AM
Friggin awesome man! Well done!

The IT Monkey
04-11-2008, 01:24 PM
Ok some thoughts...

instead of using /w to relay, why not use the addon channel? The information could be displayed just like a whisper (maybe a new color)

how about maintaining a stack for each group member of tells with syncronised id for each whisper?
Every relay received is stored with source id and remote unique sequence number(USN) (Can you tell I work with Active Directory? ;) )

implement a new slash command - /wr or similar that the addon will interpret, it knows which message it last displayed so when it sends the response, complete with sequence id, the addon on the clone will know to whom it should respond.

when you reply to a relayed tell, it looks up the id of that tell and sends your response over the addon channel to the client id (from the stack), including the remote USN. The remote instance looks up that tell in its own stack and replies to the relevant party.


All the whisper functions could be replicated in the addon, such as buffer history etc.I am worried about interfering with other whisper addons such as WiM. To make the above happen it would not come in over the whisper channel but the addon channel. I might be able to find a way around that but that only leads me to problem two... User interface. How does the main distinguish which whisper he is replying to? There may be ways to do this all and have it interface correctly with other mods but that leads me to my last problem. I am a noob at this.... I took a look at the mod PRAT and you would not believe the amount of code in there to do what you would think is simple.

What it basically comes down to is my lack of knowledge in the area (which I am hopping to rectify by trying things) and the fact that I don't know how useful any of that would be for the amount of work it would entail. How often are your alt's bombarded with whispers from many different sources? I hardly ever get a whisper at all to one of my alts. When I do it's usually a request from someone who had done a /who to find out who can summon them or prot them or the never ending tells to my priest "wanna run <insert instance here> and heal for us?" When this happens WhisperRelay comes in very handy (I even used it to talk to a GM the other day regarding a quest reward that I needed switched out) and they are never any wiser unless I tell them.

The premise behind WhisperRelay was a very simple one, make it easy to get tells from other players and easy to respond. I think it does that very well right now. To implement what you are asking looks like it would take a tremendous amount of code. Not something I am affraid of doing but something that may be beyond my capabilities at the moment. I also want to keep the mods I make focused and as small as possible. Granted WhisperRelay is not currently as small as it can be but I need to learn more before I can start stripping things out of it. As I do learn more I will be sure to keep my eye out for ways of doing the things you have requested in an easy and/or compact type way.

Thanks for the suggestions.. keep them coming.