Thread Tools Display Modes
03-09-11, 01:35 PM   #1
Rixxon
A Fallenroot Satyr
 
Rixxon's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 28
Totem Target Warnung

Salve,

Heilschamane sucht Addon zur Verhinderung von Manaverschwengung in Totems ^^

Problem : Es kommt vor das man als Schami seine Totems ins Target bekommt wenn man n bissl neben des Grid klickt .

Sollte dies passieren hätte ich derne eine Meldung oder ein Icon oder ein Tätärätätä ^^ das ich schnell wieder mein Target nehmen was ich heilen möchte und nicht das Mana in einen Holzpflock hämmer ^^

Bin mir irgendwie nicht einig ob es mit Powa Auras gehen würde. (Glaub irgendwie nicht dran , aber man weiß ja nie ^^)

Dachte da an ggf ein simples Skript wie...
If Target = Totem* then (Raidwarnung) " Alter Totem im Target !! " + "GRUMMEL.wav"

oder so ^^
  Reply With Quote
03-11-11, 02:14 AM   #2
Akkorian
A Flamescale Wyrmkin
 
Akkorian's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 111
Hi Rixxon,

Unfortunately I don’t speak German, and it seems like you didn't use proper grammar and spelling, so Google Translate wasn't very useful either. All I got was something about wasting mana on totems.

Do you want a warning when you target someone who doesn’t have your totem buffs? If so, that’s possible.

Do you want a warning when someone targets your totems? If so, that’s only possible when the person is in your group, or is the target of someone in your group, or is your enemy in an arena.

If you want something else, please try posting again with better grammar so we can translate it.

-----------------
Google Translate:

Leider habe ich nicht Deutsch sprechen, und es scheint, wie Sie früher nicht korrekte Grammatik und Rechtschreibung, so Google Translate war nicht sehr nützlich entweder. Alles, was ich verstanden hatte etwas verschwenden Mana auf Totems.

Wollen Sie eine Warnung, wenn Sie jemanden, der nicht über Ihr Totem Buffs Ziel? Wenn ja, das ist möglich.

Wollen Sie eine Warnung, wenn jemand Ihre Ziele Totems? Wenn ja, das ist nur möglich, wenn die Person in Ihrer Gruppe ist, oder ist das Ziel von jemand in Ihrer Gruppe oder ist dein Feind in einer Arena.

Wenn Sie etwas anderes wollen, versuchen Sie es erneut mit einer besseren Entsendung Grammatik, damit wir sie übersetzen können.
__________________
“Be humble, for you are made of earth. Be noble, for you are made of stars.”
  Reply With Quote
03-11-11, 03:03 AM   #3
IcyZeal
A Murloc Raider
Join Date: Nov 2010
Posts: 6
German translations always end up iffy when coming from automatic translation. Our language has no set sentence structure. Other than the SPO of english, we can put words almost anywhere and the result can be ambigous, only distinguishable by content, which automatic translators cannot do.

He wants a warning(Chat Message + sound) if HE is targetting a totem instead of a player. From what he described i'm guessing that he uses Grid and has placed it at the bottom of the screen for healing purposes and he sometimes manages to click slightly off-grid hitting a totem and cannot quite see his target (im guessing no moved frames), so he will not notice until a few heals went off.

I am gonna recommend him a moving addon to put the player and target frames close to his Grid and will try to check back for translation regularly, i cannot guarantee it though

Moin moin
Ich hab mal vernünftig übersetzt was du brauchtest, die Google Übersetzungen von Deutsch sind ja leider immer ziemlich Panne.

Zur PowerAurasClassic Frage: Bitte wende dich an den Autor, der wird es am ehesten wissen, es gibt auch eine Homepage( http://powerauras.wikispaces.com/ )... leider alles in Englisch.

Des weiteren würde ich die empfehlen, mal dein Spieler und Target frame (der kleine rahmen mit name/leben/mana usw der standardmäßig oben in der linken Ecke hängt... was bei hoheren Auflösungen natürlich nicht so herrlich ist) mit einem Addon in die Nähe von deinem Grid zu zerren. Da gibt es zum Beispiel MoveAnything(leichte Bedienung) oder ChaosFrameModifier(sehr viel weniger CPU und Speichernutzung, aber schwerer zu verwenden)


Ich werde versuchen, regelmäßig hier reinzuschauen um zu übersetzen. Versprechen kann ichs aber nicht.
  Reply With Quote
03-12-11, 03:30 AM   #4
Akkorian
A Flamescale Wyrmkin
 
Akkorian's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 111
Originally Posted by IcyZeal View Post
German translations always end up iffy when coming from automatic translation.
Well, half the words weren’t translated at all, which is why I figured they weren’t spelled right. Kind of like when people write things like “i wan 2 do dis plz halp thx” in English. I don’t think Google Translate handles stuff like that very well in any language.

Originally Posted by IcyZeal View Post
He wants a warning(Chat Message + sound) if HE is targetting a totem instead of a player.
That’s easy enough then. Make a new folder in your AddOns folder named “TotemTargetWarning”. Make two new text files in the folder named “TotemTargetWarning.toc” and “TotemTargetWarning.lua”. Put this in each file:

TotemTargetWarning.toc
Code:
## Interface: 40000

TotemTargetWarning.lua
TotemTargetWarning.lua
Lua Code:
  1. -- Change this to the sound file you want to play.
  2. local SOUND = "Sound\\Doodad\\Cannon01_BlastA.wav"
  3.  
  4. -- Change this to the message you want to show.
  5. local TEXT  = "Alter Totem im Target!"
  6.  
  7. -- Change this to the word that appears in the names
  8. -- of all totems in your language.
  9. local TOTEM = "Totem"
  10.  
  11. local addon = CreateFrame( "Frame" )
  12. addon:RegisterEvent( "UNIT_SPELLCAST_SENT" )
  13. addon:SetScript( "OnEvent", function( self, event, unit, spell, _, target )
  14.     if unit == "player" and target:match( TOTEM ) then
  15.         PlaySoundFile( SOUND )
  16.         RaidWarningFrame:AddMessage( TEXT )
  17.     end
  18. end )

It will play a sound and show a message in the raid warning frame when you cast a start casting a spell on a totem.
__________________
“Be humble, for you are made of earth. Be noble, for you are made of stars.”
  Reply With Quote
03-12-11, 05:55 AM   #5
IcyZeal
A Murloc Raider
Join Date: Nov 2010
Posts: 6
He used some words from a german dialect that sort-of established itself as internet language. I guess that would produce the same effect. Thanks for the quick fix there, i'll translate.

Rixxon, Akkorian hat dir da ne Lösung zusammengetippt, die ne Raid-Warnung ausgibt und nen sound abspielt, wenn du anfängst was mit einem Totem als Target zu zaubern. Alles was ab jetzt kommt ist von ihm, ich übersetze nur:

Du musst in deinem Addons-Ordner einen Unterordner "TotemTargetWarning" anlegen, dann machst du da drin 2 Textdateien. Eine mit Namen "TotemTargetWarning.toc" mit dem oberen Code aus Akkorians Post, und eine mit Namen "TotemTargetWarning.lua" und dem unteren Code. Den Unteren pack ich hier nochmal hin um die Kommentare zu übersetzen.


TotemTargetWarning.lua
lua Code:
  1. -- Pfad der Sound-Datei die du spielen willst. Diese Pfade gehen
  2. -- immer von "Interface" aus, wenn du also deine GRUMMEL.wav
  3. -- in den AddonOrdner packst, musst du
  4. -- "AddOns\\TotemTargetWarning\\Grummel.wav" da hinpacken
  5. local SOUND = "Sound\\Doodad\\Cannon01_BlastA.wav"
  6.      
  7. -- Die Warnung die ausgegeben werden soll
  8. local TEXT  = "Alter Totem im Target!"
  9.      
  10. -- Hier muss das Wort hin das in allen Totems des deutschen Clients
  11. -- vorkommt. Da müsste Totem richtig sein.
  12. local TOTEM = "Totem"
  13.      
  14. local addon = CreateFrame( "Frame" )
  15. addon:RegisterEvent( "UNIT_SPELLCAST_SENT" )
  16. addon:SetScript( "OnEvent", function( self, event, unit, spell, _, target )
  17.     if unit == "player" and target:match( TOTEM ) then
  18.         PlaySoundFile( SOUND )
  19.         RaidWarningFrame:AddMessage( TEXT )
  20.     end
  21. end )
  Reply With Quote
03-12-11, 10:48 PM   #6
Akkorian
A Flamescale Wyrmkin
 
Akkorian's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2010
Posts: 111
Hi IcyZeal,

Thanks for translating. I just wanted to point out one thing:

Lua Code:
  1. -- "AddOns\\TotemTargetWarning\\Grummel.wav" da hinpacken

The correct path to something in the AddOns folder actually starts with "Interface", since all paths are relative to the World of Warcraft base folder. So, this would be correct:

Lua Code:
  1. -- "Interface\\AddOns\\TotemTargetWarning\\Grummel.wav" da hinpacken
__________________
“Be humble, for you are made of earth. Be noble, for you are made of stars.”
  Reply With Quote
03-13-11, 06:38 AM   #7
IcyZeal
A Murloc Raider
Join Date: Nov 2010
Posts: 6
Woops, thanks for clearing that one up, yes, i had that one completely wrong.

Akkorian hat mich verbessert, alle Pfade müssen relativ zum World of Warcraft Ordner angegeben werden, nicht zum Interface-Ordner, deshalb muss der Pfad für deine Grummel.wav
Code:
"Interface\\AddOns\\TotemTargetWarning\\Grummel.wav"
heißen. Nicht das was ich vorher behauptet hab. Entschuldigung.
  Reply With Quote
03-13-11, 10:54 PM   #8
Rixxon
A Fallenroot Satyr
 
Rixxon's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 28
super, echt klasse von euch !! zum einen für das Übersetzen zum anderen für den Code. Ich kopiere den heute gleich mal in den Addon Ordner.

Ich hatte hier schon das eine oder andere mal einen Post reingesetzt und bekam lustiger weise Deutsche antworten darauf. Daher dachte ich, ich lasse mal das Englische weg.
Es ist zwar nicht das beste Englisch aber beim nächsten mal setze ich es wieder mit rein


Thanks for translating and scripting !! I copy that today in my addon folder and check it
I'm sorry about that to wrote my question in german without the english too. You see my english is not the best and in some other post from me i became an german answer ^^ so i dont write in this post the english question . sorry sorry sorry !! for the next time i make it right .
  Reply With Quote
03-14-11, 09:42 AM   #9
Rixxon
A Fallenroot Satyr
 
Rixxon's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 28
I've check the script and this comes out of the Blizzard Information..


Message: ...ace\AddOns\TotemTargetWarning\TotemTargetWarning.lua:15: attempt to call method 'AddMessage' (a nil value)
Time: 03/14/11 16:32:20
Count: 1
Stack: ...ace\AddOns\TotemTargetWarning\TotemTargetWarning.lua:15: in function <...ace\AddOns\TotemTargetWarning\TotemTargetWarning.lua:12>
[C]: in function `UseAction'
Interface\FrameXML\SecureTemplates.lua:275: in function `handler'
Interface\FrameXML\SecureTemplates.lua:543: in function <Interface\FrameXML\SecureTemplates.lua:491>
[C]: ?
Interface\FrameXML\SecureHandlers.lua:264: in function <Interface\FrameXML\SecureHandlers.lua:261>
[C]: ?
Interface\FrameXML\SecureHandlers.lua:294: in function <Interface\FrameXML\SecureHandlers.lua:277>
(tail call): ?

Locals: self = <unnamed> {
0 = <userdata>
}
event = "UNIT_SPELLCAST_SENT"
unit = "player"
spell = "Springflut"
_ = ""
target = "Totem des heilenden Flusses"
(*temporary) = nil
(*temporary) = RaidWarningFrame {
0 = <userdata>
timings = <table> {
}
slot2 = RaidWarningFrameSlot2 {
}
slot1 = RaidWarningFrameSlot1 {
}
}
(*temporary) = "Alter Totem im Target!"
(*temporary) = "attempt to call method 'AddMessage' (a nil value)"
TOTEM = "Totem"
SOUND = "Interface\Addon\TotemTargetWarning\Sound\dkp.ogg"
TEXT = "Alter Totem im Target!"

Maybe its an problem with the message ??
  Reply With Quote
03-14-11, 11:58 AM   #10
Ketho
A Pyroguard Emberseer
 
Ketho's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,026
Code:
RaidWarningFrame:AddMessage( TEXT )
Code:
RaidNotice_AddMessage(RaidWarningFrame, TEXT, {r=1, g=1, b=1})
?
  Reply With Quote
03-14-11, 01:41 PM   #11
Rixxon
A Fallenroot Satyr
 
Rixxon's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 28
Yes thats it ^^ Thank you !

and now the last problem... the text message is on my screen but the soundfile don't play.

thats my line but he don't load the soundfile...

local SOUND = "Interface\\AddOns\\TotemTargetWarning\\sound\\dkp.wav"

Last edited by Rixxon : 03-14-11 at 01:52 PM.
  Reply With Quote
03-14-11, 08:28 PM   #12
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
Featured
Join Date: Oct 2006
Posts: 10,860
With Cataclysm, WoW can not play .wav files. It needs to be in .mp3 or .ogg format.
__________________
"You'd be surprised how many people violate this simple principle every day of their lives and try to fit square pegs into round holes, ignoring the clear reality that Things Are As They Are." -Benjamin Hoff, The Tao of Pooh

  Reply With Quote
03-15-11, 07:53 AM   #13
Rixxon
A Fallenroot Satyr
 
Rixxon's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 28
Everything runs perfekt !

Thx to all , thanks for your help , translations and the base script !!
Attached Files
File Type: zip TotemTargetWarning.zip (32.4 KB, 857 views)
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Search/Requests » Totem Target Warnung


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off