View Full Version : NEW Addon: Silent Whisper - v0.1.1
Falkor
03-09-2008, 03:18 AM
After seeing alot of people request this I've just released my first copy of "Silent Whisper"
Its a LUA addon that you can simple place in your addons folder in World of Warcraft, Its purpose is to re-direct all the whispers from your boxers to 1 specified charector.
The setup is less then 30sec, all you need to do is add your main charectors name to the SilentWhisper.lua file.
Instructions are included in the Readme.txt
EXAMPLE
My main was Kleavage
My alt was Falkor
Kleavage also acted as the random person sending a whisper to my alt.
Kleavage sent a message to Falkor, Falkor recieved a whisper and then directed the contents straight to my designated main - Kleavage.
http://www.guildcore.co.uk/silentwhisper/alt2main.jpg http://www.guildcore.co.uk/silentwhisper/main2alt.jpg
I will be upgrading this over the forthcoming weeks to be even more feature rich, any ideas/critacism/constructive comments are welcome :)
Falkor.
ChangeLog
0.1.1
Added original sender name to redirected whisper.
0.1.0
Original release.
Silly Gooooose
03-09-2008, 03:33 AM
New poster, first post, and it's a zip!? I smell crabs! or aids! or just many viruses!
Some brave soul try it yet?
Falkor
03-09-2008, 03:35 AM
The zip file is virus scanned and contains 3 files, 1x lua 1x toc 1x xml. All standard Addon files you can look at them if you so wish.
Additionally I'm pretty sure you will retract your previous comment sensenmann when you find out this is actually a very good legit addon I've spent time making :) But I understand how it looks so I will take it on the head for now.
Otana
03-09-2008, 03:44 AM
I've had a look over the zip and the Addon Code, it looks clean. Ive not had a chance to use it in game yet but I cant wait to try this out. Many Thanks Falkor :D
Diamndzngunz
03-09-2008, 03:52 AM
Sounds cool. Do I trust it? Not really. But it does sound really cool.
Falkor
03-09-2008, 04:00 AM
If your all worried about the zip file I can just post the code here - you can copy and paste it into 3files and save them in your addins folder simple?
Diamndzngunz
03-09-2008, 04:29 AM
That would be cool.
Falkor
03-09-2008, 04:39 AM
THIS CODE IS NOW OUT-DATED, USE THE DOWNLOAD LINKS AT TOP OF THIS PAGE!
Copy and paste the below code into the files making sure you name them correct!
You can make a folder inside your interface/addons folder and name it anything you want.
SilentWhisper.lua
local VERSION="0.1.0"
function SilentWhisper_OnLoad()
this:RegisterEvent("CHAT_MSG_WHISPER");
end
function SilentWhisper_OnEvent(event)
if strsub(event,1,16) == "CHAT_MSG_WHISPER" then
local msg = arg1;
local plr = arg2;
Whisper(msg)
end
end
function Whisper(Message)
local rname = "ChangeMe";
SendChatMessage(Message , "WHISPER", "Common", rname);
end
SilentWhisper.toc
## Interface: 333000
## Title: Silent Whisper
## Author: Falkor
## Version: 0.1.0
## Notes: Redirects whispers from your alts to your main
## DefaultState: Enabled
## LoadOnDemand: 0
SilentWhisper.xml
SilentWhisper.xml
<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/ C:\Projects\WoW\Bin\Interface\FrameXML\UI.xsd">
<Script file="SilentWhisper.lua" />
<Frame name="SilentFrame" parent="UIParent" frameStrata="HIGH" toplevel="true" hidden="true">
<Scripts>
<OnLoad>
SilentWhisper_OnLoad();
</OnLoad>
<OnEvent>
SilentWhisper_OnEvent(event);
</OnEvent>
</Scripts>
</Frame>
</Ui>
Supercod
03-09-2008, 09:14 AM
Hi, well done for taking the time to make this addon... only issue I can see with this is that the redirected whisper (looking at your screen shots) doesn’t have the name of the original sender in it, so who do you know who to reply to?
Falkor
03-09-2008, 10:50 AM
as i said in the original post this is just the first version, its idea is to send you a copy of the whisper so you can read it and decide weather to swtich to the other client and reply. Its merely to preview the whisper and save you wasting time for checking a spam whisper or "gimme gold" one.
I'm currently re-writing some of the code to expand and include "[message],[sender],[time]"
Supercod
03-09-2008, 12:28 PM
Sweet, I was in no way running it down, simply giving you some feedback. Keep up the good work, I for one will be using this add-on :)
Djarid
03-09-2008, 01:15 PM
if you modify silentwhisper.lua, changing the whisper function to the following
function Whisper(Message, sender)
if !isPartyLeader then
local rname
local leader = "party"..GetPartyLeaderIndex()
inInstance, instanceType = IsInInstance()
local msg = "Sent by "..sender..": "..Message
if mbLeader == "party" then
if instanceType == "pvp" then
rname = GetUnitName("focus", false)
else
rname = GetUnitName(leader, false)
end
elseif mbLeader == "focus" then
rname = GetUnitName("focus", false)
else
rname = nameLeader
end
SendChatMessage(msg , "WHISPER", "Common", rname);
end
end
this should allow boxers who use partyleader or focus to use the addon.
add a line near the beginning declaring nameLeader = the named character of the leader if required.
NOTE: for people using partyleader, this takes battlegrounds into consideration and will use focus for leader definition instead.
It also checks to see if the character is leader and only resending whispers.
And it will send the originator of the message
Falkor
03-09-2008, 01:23 PM
nice addition to the code Djarid :)
I've updated v0.1.0 to v0.1.1
This includes one of the requested features - original sender name on redirected whisper!
If you want me to add anything else fire away with ideas :)
Supercod
03-09-2008, 03:02 PM
Nice one guys, truly a very good mod (well I am just installing the new one but if works like you say magic) no longer do I have to tell everyone in Guild that I am on so and so as the main, they can whisper who they like and I won't be ignoring them as I have no sound on the other machines to keep the speed up.
I simply can't wait to test this Addon at home (on work right now :( ) - thanks Falkor and the others for your work!
It was awesome how many whispers I got which I never read because I simply didn't see them and then pressing "R" for reply whisper by accident made a receiver visible, every time on every character - scary stuff. :D
Falkor
03-10-2008, 12:54 PM
I will be expanding on this addon more and more :)
Possible ideas:
Include a wow interface to change your main name. Allow you to customise the whisper format Include timestamps with whispers
Silly Gooooose
03-10-2008, 01:47 PM
doesn't the toolbox mod do this already? JW cuz I use that one.
zanthor
03-10-2008, 03:00 PM
FFS people, it's AN ADD ON.
Every single addon you install comes as a .ZIP or a .RAR, it's not like this guys pawning a .EXE to do this...
Sure, the guys new, but if you don't trust him don't rail him about it...
I took a 30 second look at this (and read every single line of included code) and there is nothing malicious about it... other than the fact this guys trying to contribute tot he community by giving something back to it.
zanthor
03-10-2008, 03:03 PM
nice addition to the code Djarid :)
I've updated v0.1.0 to v0.1.1
This includes one of the requested features - original sender name on redirected whisper!
If you want me to add anything else fire away with ideas :)One feature that would be handy is to have the main player receive the chat and update his /reply queue... I'm not certain that code is exposed however.... a cursory glance at wowwiki doesn't show anything obvious but you could probably crack the default chatframe code open and find it.
Falkor
03-10-2008, 03:38 PM
Sorry to say but were limited to functions that blizzard provide within their LUA framework, and the features that would make it possible to update the reply queue are protected functions, meaning we cannot edit the reply queue in any way :(
I understand why they have done this and that is because it could be used to spoof whispers from unknown users!
zanthor
03-10-2008, 04:00 PM
What about:
ChatEdit_GetLastToldTarget()
ChatEdit_SetLastToldTarget(string)
Not in front of a PC with WoW right now so I can't check, but Wow Instant Messenger uses those and I'm not seeing them defined in WIM's source, so I would assume they are WoW Native functions... could be wrong of course :).
Falkor
03-10-2008, 04:39 PM
The command you are thinking about is this:
/script ChatEdit_SetLastTellTarget("me");
This does what you are trying to do, but the problem you are then stuck with is how do you tell the main charactor to do this....
I think this might be possible if you had a addon running on your main charactor to monitor the addon hidden channel and then run the command every time if gets a message.....
zanthor
03-10-2008, 04:51 PM
The command you are thinking about is this:
/script ChatEdit_SetLastTellTarget("me");
This does what you are trying to do, but the problem you are then stuck with is how do you tell the main charactor to do this....
I think this might be possible if you had a addon running on your main charactor to monitor the addon hidden channel and then run the command every time if gets a message.....Yea, you would have to transmit the message in the addon channel or you could encapsulate it in the whisper and have the recipient handle whisper incoming events and look for a tag on them.
Hook the CHAT_MSG_WHISPER event and if arg1 starts with the string [sw:*] parse out the * and set the last tell target.
I can give a more exact example of how to do this once I'm off work if you would like a hand with it.
Falkor
03-10-2008, 06:34 PM
If you fancy showing me some examples that would be great!
The way I see it is just send the whisper that appears like this-
Joe whispered: Joe2|hi mate hows it going
Then just strip out everything form the whisper after the pipe and parse the remaining arg to the whispered list :)
Falkor
03-11-2008, 11:32 AM
Heres a quick look at what to expect to see in the next mini-release!
v0.1.2
# GUI to change the name of your main in the group
No more notepad lua editing.
# Add the name of the whisperer to your mains last whispered queue
You can now just use /r on your main to reply.
Still looking for more requests if anyone has any :P
caffiend86
03-11-2008, 11:37 AM
Thanks for this Falkor, I was using Twoboxtoolkit previously but it was a huge memory hog causing all kinds of lag when I was using windowed clients on 2 machines...
Falkor
03-11-2008, 12:15 PM
The most memory I've seen SilentWhisper use when communicating with 5chars is: 8KB :thumbsup:
Gotta be one of the most memory friendly whisper redirection addons available!
The IT Monkey
03-11-2008, 01:39 PM
Heres a quick look at what to expect to see in the next mini-release!
v0.1.2
# GUI to change the name of your main in the group
No more notepad lua editing.
# Add the name of the whisperer to your mains last whispered queue
You can now just use /r on your main to reply.
Still looking for more requests if anyone has any :PRegarding the GUI... anyway to make it so you just change it on the main and the slaves get updated? I know it would be easy to go to each and change it but this would just be one less thing us multiboxers have to do FIVE times.
Falkor
03-11-2008, 01:46 PM
Heres a quick look at what to expect to see in the next mini-release!
v0.1.2
# GUI to change the name of your main in the group
No more notepad lua editing.
# Add the name of the whisperer to your mains last whispered queue
You can now just use /r on your main to reply.
Still looking for more requests if anyone has any :PRegarding the GUI... anyway to make it so you just change it on the main and the slaves get updated? I know it would be easy to go to each and change it but this would just be one less thing us multiboxers have to do FIVE times.Request taken into consideration and I don't see any reason why we cannot do this :)
caffiend86
03-12-2008, 12:57 PM
Hey Falkor Silent Whisper doesn't seem to be coming up properly in my addon list using either the 0.1 toc or the 0.1.1 version with both the original code and the updates provided in forums here. Adjusted interface to be 20300 as per current Wow version, same result. Wondering if something isn't right somewhere or a correction can be provided etc.
Also for new versions the additional code provided by Djarid ('http://www.dual-boxing.com/forums/index.php?page=User&userID=1039') to use either focus or party1 is great, however wondering if a slash command can be included to manually set the master toon such as /silentwhisper master <toonname> so such code can be manually included in a macro etc. Being able to adjust that on the fly would be pretty key for me as I have 3 possible leaders of my various multibox parties and hardcoding wouldn't be a good option there.
The IT Monkey
03-12-2008, 01:29 PM
Caffiend86,
I ran into this as well, you have to rename the folder that you put in your addons to be JUST "SilentWhisper" It comes out of the zip as "SilentWhisper v.01.1" or something like that and WoW (and most windows applications) do NOT like periods in file or folder names.
Falkor
03-12-2008, 01:56 PM
Also for new versions the additional code provided by Djarid ('http://www.dual-boxing.com/forums/index.php?page=User&userID=1039') to use either focus or party1 is great, however wondering if a slash command can be included to manually set the master toon such as /silentwhisper master <toonname> so such code can be manually included in a macro etc. Being able to adjust that on the fly would be pretty key for me as I have 3 possible leaders of my various multibox parties and hardcoding wouldn't be a good option there.The slash command is being added as we speak to v0.1.2
Hippieman
03-13-2008, 04:57 AM
Did I mention that I love you?
Ðeceased
03-13-2008, 09:13 AM
greart addon m8y :) I'm going to try this out as soon as i get back home.
oh and Caffiend86... I'm sorry, I couldn't stop laughing at your Avatar! :thumbsup:
This looks great, as the whisper relay is all I use twoboxtoolkit for.
The reply from main is a great idea. Replying from an alt gets really old with all the keyboard switching, pausing keyclone and focusing the right window and so on. :)
I would like to reply as the original receiver of the whisper though. Most people get confused if someone else answer their whisper, and quite a few actually block random whispers. An ugly solution I thought of was making different reply commands ("/r1", "/r2", "/r3"...) on all characters, so that you could type the same reply on all characters, but all except one would just give errors. But, eh, maybe there's a better way.
Another feature request would be a shared ignore list. Then you'd only need to run one spam filter. (Although, I don't actually get much whisper spam anymore.)
Djarid
03-13-2008, 11:20 AM
why not just interpret received whispers (which we are doing anyway) on the clones so that when a whisper arrives from the main it is resent to the originator of the last relayed whisper. Perhaps with a message asking the originator to send all future communications to the main character?
Falkor
03-13-2008, 03:42 PM
why not just interpret received whispers (which we are doing anyway) on the clones so that when a whisper arrives from the main it is resent to the originator of the last relayed whisper. Perhaps with a message asking the originator to send all future communications to the main character?This is indeed the way im moving with it, the ability to spoof the originator to make it appear that your main has whispered from your clone is impossible.#
I'm still testing code at the moment that attempts to add the whisperer to your mains reply list so all communication goes via your main!
Drakkun
03-13-2008, 06:12 PM
Could you make it so that whispers went like this:
Incoming: Some Player --> Non-Main Char --> Main (Working now)
Reply: Main --> Non-Main Char --> Some Player
This would allow you to reply to your non-main character and it would use that to reply to the original whisperer. Kind of like a middle man. I think you should be able to hold the original whisperer's name somehow.
Would it be possible to create a clickable link to the person whispering your alt? That way I could just click his name in the relayed message from my alt, and type the message in, to be whispered from my main.
[Drrockter] whispers: [Falkor - servername] whispers: Hi!
I click on [Falkor - servername] and type Hello!
Panna
03-16-2008, 03:45 AM
Thanks Falkor :)
caffiend86
03-22-2008, 12:22 AM
if you modify silentwhisper.lua, changing the whisper function to the following
function Whisper(Message, sender)
if !isPartyLeader then
local rname
local leader = "party"..GetPartyLeaderIndex()
inInstance, instanceType = IsInInstance()
local msg = "Sent by "..sender..": "..Message
if mbLeader == "party" then
if instanceType == "pvp" then
rname = GetUnitName("focus", false)
else
rname = GetUnitName(leader, false)
end
elseif mbLeader == "focus" then
rname = GetUnitName("focus", false)
else
rname = nameLeader
end
SendChatMessage(msg , "WHISPER", "Common", rname);
end
end
this should allow boxers who use partyleader or focus to use the addon.
add a line near the beginning declaring nameLeader = the named character of the leader if required.
NOTE: for people using partyleader, this takes battlegrounds into consideration and will use focus for leader definition instead.
It also checks to see if the character is leader and only resending whispers.
And it will send the originator of the messageHey Djarid and Falkor, I tried replacing whisper function with the above code, however no whispers appear to be forwarding after I do so even including manually entering the primary character name in nameLeader as an alternate... Anything you can find in this code to make it work?
Alternately modifying the original silent whisper code to perform if/else checking to assign rname to be one of 3 characters by checking for which ones exists and forwarding whispers on from there... This would serve my purposes as I have 3 different toons that could be leading my 5 box(I have no clue on the syntax its been over 10 years since I took any sort of programming classes).
RName = kylarina (exists?), Else maivis (exists?), irinyes, and so on...
Falkor
03-25-2008, 10:31 PM
Intresting... I'm currently creating the framed admin which will remove the requirement for your code but at the same time I'm trying to figure out where you went wrong.....
I personally would have 2functions.... party leader function and static function
Then in the onload do an if / else on the functions ......
Maxion
03-26-2008, 01:36 AM
I was just wondering, since the whisper redirecting functionality is already part of this addon:
http://wowinterface.com/downloads/info7199-TwoBoxToolkit.html
Is the one you are making meant to be a lightweight version for just that one function?
Sentack
03-27-2008, 12:30 AM
This actually looks like a nice light weight add-on. I like the look of Two-Box Tool Kit but it does seem like it's a tad bulky and might need some updating. Has anyone checked to see if the last version of the toolkit is up to date?
This addon though seems like a good tool for boxers, if they don't want all the other baggage Two-box gives.
Maxion
03-27-2008, 12:37 AM
Twoboxtoolkit hasn't been updated in a while as far as i know, but it still works fine for me, even with the new patch.
And i use more of its functions if not all, so i'm very happy with it :)
The IT Monkey
03-27-2008, 02:12 PM
I think, as boxers, we would wish all of our mods to be as light weight and modular as possible. I tried twobox but most if it I didn't use so was very happy to see Silent Whisper.
Another aspect of this is that it being small and purpose driven (meaning it doesn't claim to do any follow or other business) is that we can request changes to it that it would make sense for it to do. Such as the "being able to reply" function.
I am glad Silent Whisper came on the scene and am looking forward to future versions.
Maxion
03-28-2008, 03:03 AM
Just a note, I believe twobox toolkit has been updated for 2.4 now.
Djarid
03-31-2008, 04:36 AM
For many of us the only reason twobox toolkit is interesting is for the whisper redirection and so Falkor's addon is great...
Sentack
03-31-2008, 09:36 AM
I've been running with the Twoboxing Add-on (Needs a better name) And I must admit, it's been pretty nice overall. I haven't really tweaked the settings too much but, I like it so far for a few of the features I've actually been using lately. Auto Party Joining, Auto Quest Accepting, and Buff drop warning. Nobody has whispered yet to my clones, so I haven't seen that feature active yet. I also threw in the Ace2 bare bones package just for the /in command, which is pretty fun to run my "I'm not a Bot!" macro that had my clones arguing over the fact that if I"m a bot or not.
A new macro I need to make will be called, "This is called Multi-Boxing." and just have my clones talk abotu the fact that their's nothing wrong with what I'm doing, and I'm not here to ruin your fun. I've had a few people follow me, give me some lip and laugh at me over multi-boxing. So far though, I really don't care. But a few have found it interesting. I get a lot of requests for invites though to help PL or finish quests. Quest assistance, I'm fine with though.
Dopefish
05-03-2008, 09:01 AM
for all thoose poor horde players wondering why it doesn't work ;) we don't speak "COMMON"
http://www.wowwiki.com/API_SendChatMessage
SendChatMessage(msg , "WHISPER", GetDefaultLanguage("player"), rname);
Falkor
05-06-2008, 10:28 AM
Cheers for the updates guys I've currently been busy writing my lua for beginners book but I have alot of updates to upload for this addon including the new control panel :P
Dopefish
06-10-2008, 02:56 PM
Jedi Mind Trick: You want to release the script and save me the trouble of fiddling with strings in LUA to get the reply to go to the ricght person :-p
glenlivet
08-13-2008, 12:47 PM
Nice Mod, I'm a beginner dual-boxer myself, and not a programmer by any stretch, but there is an addon called "shutup" and another called "whisper blocker" both of which are available on curse.com. basically what they do is keep people who aren't in your guild or you're friends list from sending you messages. What I was think was that if you could incorporate that feature into silent whisper that would be nice, provided you could turn the blocking on and off.
So your clones would be blocking people not on their friends / guild lists and redirecting people on your friend's / guild list to your main. Your main would not be blocking anyone.
The ability to toggle the blocking on / off allows you to block with you main or turn the blocking off on a particular clone so that messages to that clone get sent on to the main even if the messages are from random people.
--> Thanks for the heads up on the "1.1" causing me issues with installation.
vBulletin® v4.2.2, Copyright ©2000-2025, Jelsoft Enterprises Ltd.