Thread Tools Display Modes
04-09-11, 11:51 AM   #1
Skylinee
A Murloc Raider
Join Date: Nov 2006
Posts: 5
Shortening loot messages (moved out of UI Feedback Thread)

Originally Posted by Zagrei View Post
I'll start it off! Something I threw together, what do you think? Runic Power is directly behind runes, as you can see in the group shot

Ignore the random minimap icon, I was fiddling with an addon xD
How do you shorten loot messages to look like it does in this screenshot?

http://www.wowinterface.com/forums/a...3&d=1296915785

I got CashFlowLite to shorten gold loot, but i'd like to shorten all other loot messages aswell, and possibly achievements ([Player X] + [Random Achievement] is so much shorter and sweet.)
  Reply With Quote
04-09-11, 12:12 PM   #2
Andone
A Deviate Faerie Dragon
Join Date: Dec 2009
Posts: 10
Originally Posted by Skylinee View Post
How do you shorten loot messages to look like it does in this screenshot?
Looks like Miniloot http://www.wowinterface.com/download...-MiniLoot.html
  Reply With Quote
04-09-11, 12:18 PM   #3
Moxie
A Cobalt Mageweaver
 
Moxie's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 206
http://www.wowinterface.com/forums/s...ad.php?t=39564
__________________
"Someday we'll look back on this, laugh nervously and quickly change the subject."

"The truth is like sunlight: people used to think it was good for you."
  Reply With Quote
04-09-11, 12:23 PM   #4
Vlad
A Molten Giant
 
Vlad's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2005
Posts: 793
Originally Posted by Andone View Post
Indeed it's not MiniLoot but http://www.wowinterface.com/forums/s...ad.php?t=39564
  Reply With Quote
04-09-11, 01:00 PM   #5
Skylinee
A Murloc Raider
Join Date: Nov 2006
Posts: 5
Yeah, thanks. From the looks of it though, it seems i need to set this up as an addon myself and i'm kinda green when it comes to that.
  Reply With Quote
04-09-11, 01:15 PM   #6
Lily.Petal
A Molten Giant
 
Lily.Petal's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2010
Posts: 540
Originally Posted by Skylinee View Post
Yeah, thanks. From the looks of it though, it seems i need to set this up as an addon myself and i'm kinda green when it comes to that.
Same here ^-^ though would love something like this :3
__________________

Aggro Color to KG Panels Borders - Nibelheim
Lua Based UI Hider - Nibelheim
Custom LUA PowerText - Stuf - Nibelheim, Seerah
  Reply With Quote
04-09-11, 01:30 PM   #7
Moxie
A Cobalt Mageweaver
 
Moxie's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 206
Put the code in Saitket's post into any lua file at the bottom and it'll work. I threw it into the small add-on I mention below.

As for the loot strings, I created a folder called StringEdits, placed a .toc file with this code in it:

Code:
## Interface: 30300
## Title: CustomStrings
## Notes: Customized global strings, with thanks WowInterface.
## Version: 1
## X-Category: Chat/Communication

StringEdits.lua
and then created a StringEdits.lua file with the loot strings inside.
__________________
"Someday we'll look back on this, laugh nervously and quickly change the subject."

"The truth is like sunlight: people used to think it was good for you."
  Reply With Quote
04-09-11, 01:32 PM   #8
Zagrei
A Cobalt Mageweaver
 
Zagrei's Avatar
AddOn Compiler - Click to view compilations
Join Date: Nov 2009
Posts: 246
Originally Posted by Skylinee View Post
How do you shorten loot messages to look like it does in this screenshot?

http://www.wowinterface.com/forums/a...3&d=1296915785

I got CashFlowLite to shorten gold loot, but i'd like to shorten all other loot messages aswell, and possibly achievements ([Player X] + [Random Achievement] is so much shorter and sweet.)
Put this somewhere in an LUA file, and it should work just fine

EDIT: ORR just do what they all said, because I'm extremely slow, apparently xD
Code:
--[[ Tooltip mods by Alza (edited) ]] 
--[[ Originally posted by Haleth (I believe) ]]

ITEM_BIND_ON_EQUIP = "BoE"
ITEM_BIND_ON_PICKUP = "BoP"
ITEM_BIND_ON_USE = "Bind on use"
ITEM_BIND_QUEST = "Quest item"
ITEM_CLASSES_ALLOWED = "Class: %s"
ITEM_CONJURED = "Conjured"
ITEM_CREATED_BY = "" -- No creator name
ITEM_LEVEL = "|cff00ffffilvl: %d|r" -- Blue color
ITEM_LEVEL_AND_MIN = "Level: %d (min: %d)"
ITEM_LEVEL_RANGE = "Requires level: %d - %d"
ITEM_LEVEL_RANGE_CURRENT = "Requires level: %d - %d (%d)"
ITEM_LIMIT_CATEGORY = "Unique: %s (%d)"
ITEM_LIMIT_CATEGORY_MULTIPLE = "BoE: %s (%d)"
ITEM_MIN_LEVEL = "Requires level: %d"
ITEM_MIN_SKILL = "Requires: %s (%d)"
ITEM_MOD_AGILITY = "%c%d Agility"
ITEM_MOD_AGILITY_SHORT = "Agility"
ITEM_MOD_ARMOR_PENETRATION_RATING = "ARP +%d"
ITEM_MOD_ARMOR_PENETRATION_RATING_SHORT = "ARP"
ITEM_MOD_ATTACK_POWER = "AP +%d"
ITEM_MOD_ATTACK_POWER_SHORT = "AP"
ITEM_MOD_BLOCK_RATING = "Block rating +%d"
ITEM_MOD_BLOCK_RATING_SHORT = "Block rating"
ITEM_MOD_BLOCK_VALUE = "Block value +%d"
ITEM_MOD_BLOCK_VALUE_SHORT = "Block value"
ITEM_MOD_CRIT_MELEE_RATING = "Crit (melee) +%d"
ITEM_MOD_CRIT_MELEE_RATING_SHORT = "Crit (melee)"
ITEM_MOD_CRIT_RANGED_RATING = "Crit (ranged) +%d"
ITEM_MOD_CRIT_RANGED_RATING_SHORT = "Crit (ranged)"
ITEM_MOD_CRIT_RATING = "Crit +%d"
ITEM_MOD_CRIT_RATING_SHORT = "Crit"
ITEM_MOD_CRIT_SPELL_RATING = "Crit (spell) +%d"
ITEM_MOD_CRIT_SPELL_RATING_SHORT = "Crit (spell)"
ITEM_MOD_DAMAGE_PER_SECOND_SHORT = "DPS"
ITEM_MOD_DEFENSE_SKILL_RATING = "Defense +%d"
ITEM_MOD_DEFENSE_SKILL_RATING_SHORT = "Defense"
ITEM_MOD_DODGE_RATING = "Dodge +%d"
ITEM_MOD_DODGE_RATING_SHORT = "Dodge"
ITEM_MOD_EXPERTISE_RATING = "Expertise +%d"
ITEM_MOD_EXPERTISE_RATING_SHORT = "Expertise"
ITEM_MOD_FERAL_ATTACK_POWER = "Feral AP +%d"
ITEM_MOD_FERAL_ATTACK_POWER_SHORT = "Feral AP"
ITEM_MOD_HASTE_MELEE_RATING = "Haste (melee) +%d"
ITEM_MOD_HASTE_MELEE_RATING_SHORT = "Haste (melee)"
ITEM_MOD_HASTE_RANGED_RATING = "Haste (ranged) +%d"
ITEM_MOD_HASTE_RANGED_RATING_SHORT = "Haste (ranged)"
ITEM_MOD_HASTE_RATING = "Haste +%d"
ITEM_MOD_HASTE_RATING_SHORT = "Haste"
ITEM_MOD_HASTE_SPELL_RATING = "Haste (spell) +%d"
ITEM_MOD_HASTE_SPELL_RATING_SHORT = "Haste (spell)"
ITEM_MOD_HEALTH = "%c%d Health"
ITEM_MOD_HEALTH_SHORT = "Health"
ITEM_MOD_HEALTH_REGEN = "%d Hp5"
ITEM_MOD_HEALTH_REGEN_SHORT = "Hp5"
ITEM_MOD_HEALTH_REGENERATION = "%d Hp5"
ITEM_MOD_HEALTH_REGENERATION_SHORT = "Hp5"
ITEM_MOD_HIT_MELEE_RATING = "Hit (melee) +%d"
ITEM_MOD_HIT_MELEE_RATING_SHORT = "Hit (melee)"
ITEM_MOD_HIT_RANGED_RATING = "Hit (ranged) +%d"
ITEM_MOD_HIT_RANGED_RATING_SHORT = "Hit (ranged)"
ITEM_MOD_HIT_RATING = "Hit +%d"
ITEM_MOD_HIT_RATING_SHORT = "Hit"
ITEM_MOD_HIT_SPELL_RATING = "Hit (spell) +%d"
ITEM_MOD_HIT_SPELL_RATING_SHORT = "Hit (spell)"
ITEM_MOD_HIT_TAKEN_RATING = "Miss +%d"
ITEM_MOD_HIT_TAKEN_RATING_SHORT = "Miss"
ITEM_MOD_HIT_TAKEN_SPELL_RATING = "Spell miss +%d"
ITEM_MOD_HIT_TAKEN_SPELL_RATING_SHORT = "Spell miss"
ITEM_MOD_HIT_TAKEN_MELEE_RATING = "Melee miss +%d"
ITEM_MOD_HIT_TAKEN_MELEE_RATING_SHORT = "Melee miss"
ITEM_MOD_HIT_TAKEN_RANGED_RATING = "Ranged miss +%d"
ITEM_MOD_HIT_TAKEN_RANGED_RATING_SHORT = "Ranged miss"
ITEM_MOD_INTELLECT = "%c%d Intellect"
ITEM_MOD_INTELLECT_SHORT = "Intellect"
ITEM_MOD_MANA = "%c%d Mana"
ITEM_MOD_MANA_SHORT = "Mana"
ITEM_MOD_MANA_REGENERATION = "+%d Mp5"
ITEM_MOD_MANA_REGENERATION_SHORT = "Mp5"
ITEM_MOD_MELEE_ATTACK_POWER = "AP (melee) +%d"
ITEM_MOD_MELEE_ATTACK_POWER_SHORT = "AP (melee)"
ITEM_MOD_PARRY_RATING = "Parry +%d"
ITEM_MOD_PARRY_RATING_SHORT = "Parry"
ITEM_MOD_RANGED_ATTACK_POWER = "AP (ranged) +%d"
ITEM_MOD_RANGED_ATTACK_POWER_SHORT = "AP (ranged)"
ITEM_MOD_RESILIENCE_RATING = "Resi +%d"
ITEM_MOD_RESILIENCE_RATING_SHORT = "Resi"
ITEM_MOD_SPELL_DAMAGE_DONE = "Spellpower +%d"
ITEM_MOD_SPELL_DAMAGE_DONE_SHORT = "Spellpower"
ITEM_MOD_SPELL_HEALING_DONE = "Healing +%d"
ITEM_MOD_SPELL_HEALING_DONE_SHORT = "Healing"
ITEM_MOD_SPELL_POWER = "Spellpower +%d"
ITEM_MOD_SPELL_PENETRATION = "Penetration +%d"
ITEM_MOD_SPELL_PENETRATION_SHORT = "Penetration"
ITEM_MOD_SPIRIT = "%c%d Spirit"
ITEM_MOD_SPIRIT_SHORT = "Spirit"
ITEM_MOD_STAMINA = "%c%d Stamina"
ITEM_MOD_STAMINA_SHORT = "Stamina"
ITEM_MOD_STRENGTH = "%c%d Strength"
ITEM_MOD_STRENGTH_SHORT = "Strength"
ITEM_NO_DROP = "No drop"
ITEM_SOULBOUND = "Soulbound"
ITEM_OPENABLE = "Open!"
ITEM_PROPOSED_ENCHANT = "Will be traded: %s"
ITEM_PROSPECTABLE = "Prospectable"
ITEM_RACES_ALLOWED = "Race: %s"
ITEM_RANDOM_ENCHANT = "Random enchant"
ITEM_REQ_ARENA_RATING = "Required rating %d"
ITEM_REQ_PURCHASE_GROUP = "Required \"%s\""
ITEM_REQ_REPUTATION = "Required: %2$s - |3-7(%1$s)"
ITEM_REQ_SKILL = "Required: %s"
ITEM_RESIST_ALL = "%c%d All resistances"
ITEM_RESIST_SINGLE = "Resist: %c%d %s"
ITEM_SET_BONUS = "Set: %s"
ITEM_SET_BONUS_GRAY = "Set (%d): %s"
ITEM_SIGNABLE = "Sign!"
ITEM_SOCKETABLE = "" -- No gem info line
ITEM_SOCKET_BONUS = "Bonus: %s"
ITEM_SOLD_COLON = "Sold:"
ITEM_SPELL_CHARGES = "%d charges"
ITEM_SPELL_CHARGES_NONE = "No charges"
ITEM_SPELL_EFFECT = "Cast: %s"
ITEM_SPELL_KNOWN = "Aldeady knows"
ITEM_SPELL_TRIGGER_ONEQUIP = "Equip:"
ITEM_SPELL_TRIGGER_ONPROC = "Proc:"
ITEM_SPELL_TRIGGER_ONUSE = "Use:"
ITEM_STARTS_QUEST = "Starts quest"
ITEM_UNIQUE = "Unique"
ITEM_UNIQUE_EQUIPPABLE = "Unique use"
ITEM_UNIQUE_MULTIPLE = "Unique (%d)"
ITEM_WRONG_CLASS = "Wrong class!"
ITEM_UNSELLABLE = "Can't be sold"
SELL_PRICE = "Price"
ITEM_HEROIC = "Heroic"

INVTYPE_2HWEAPON = "Two-Hand"
INVTYPE_AMMO = "Ammo"
INVTYPE_BAG = "Bag"
INVTYPE_BODY = "Shirt"
INVTYPE_CHEST = "Chest"
INVTYPE_CLOAK = "Back"
INVTYPE_FEET = "Feet"
INVTYPE_FINGER = "Finger"
INVTYPE_HAND = "Hands"
INVTYPE_HEAD = "Head"
INVTYPE_HOLDABLE = "Offhand"
INVTYPE_LEGS = "Legs"
INVTYPE_NECK = "Neck"
INVTYPE_QUIVER = "Quiver"
INVTYPE_RANGED = "Ranged"
INVTYPE_RANGEDRIGHT = "Ranged"
INVTYPE_RELIC = "Relic"
INVTYPE_ROBE = "Chest"
INVTYPE_SHIELD = "Shield"
INVTYPE_SHOULDER = "Shoulder"
INVTYPE_TABARD = "Tabard"
INVTYPE_THROWN = "Thrown"
INVTYPE_TRINKET = "Trinket"
INVTYPE_WAIST = "Waist"
INVTYPE_WEAPON = "One-Hand"
INVTYPE_WEAPONMAINHAND = "Main Hand"
INVTYPE_WEAPONOFFHAND = "Off Hand"
INVTYPE_WRIST = "Wrist"

ARMOR_TEMPLATE = "Armor: %d"
DAMAGE_TEMPLATE = "Damage: %d - %d"
DPS_TEMPLATE = "%.1f DPS"
DURABILITY_TEMPLATE = "Durability: %d/%d"
SHIELD_BLOCK_TEMPLATE = "Block: %d"

EMPTY_SOCKET_RED = "red"
EMPTY_SOCKET_YELLOW = "yellow"
EMPTY_SOCKET_BLUE = "blue"
EMPTY_SOCKET_META = "meta"
EMPTY_SOCKET_NO_COLOR = "no color"

--[[ Loot mods ]]

LOOT_ITEM = "%s |cffffff00+|r %s"
LOOT_ITEM_MULTIPLE = "%s |cffffff00+|r %sx%d"
LOOT_ITEM_SELF = "|cffffff00+|r %s"
LOOT_ITEM_SELF_MULTIPLE = "|cffffff00+|r %sx%d"
LOOT_ITEM_PUSHED_SELF = "|cffffff00+|r %s"
LOOT_ITEM_PUSHED_SELF_MULTIPLE = "|cffffff00+|r %sx%d"
LOOT_MONEY = "|cffffff00+|r |cffffffff%s"
YOU_LOOT_MONEY = "|cffffff00+|r |cffffffff%s"
LOOT_MONEY_SPLIT = "|cffffff00+|r |cffffffff%s"
LOOT_ROLL_ALL_PASSED = "All passed on %s"
LOOT_ROLL_PASSED_AUTO = "%s passed %s (auto)"
LOOT_ROLL_PASSED_SELF_AUTO = "pass %s (auto)"
LOOT_ROLL_WON = "%s wins %s"
LOOT_ROLL_YOU_WON = "You won %s"
LOOT_ROLL_WON_NO_SPAM_DE = "%1$s wins %3$s |cff818181(de %2$d)|r"
LOOT_ROLL_WON_NO_SPAM_NEED = "%1$s wins %3$s |cff818181(need %2$d)|r"
LOOT_ROLL_WON_NO_SPAM_GREED = "%1$s wins %3$s |cff818181(greed %2$d)|r"
LOOT_ROLL_YOU_WON_NO_SPAM_DE = "You won %2$s |cff818181(de %1$d)|r"
LOOT_ROLL_YOU_WON_NO_SPAM_NEED = "You won %2$s |cff818181(need %1$d)|r"
LOOT_ROLL_YOU_WON_NO_SPAM_GREED = "You won %2$s |cff818181(greed %1$d)|r"

--[[ Chat mods ]]

ACHIEVEMENT_BROADCAST = "%s achieved %s!"
BN_INLINE_TOAST_FRIEND_OFFLINE = "\124TInterface\\FriendsFrame\\UI-Toast-ToastIcons.tga:16:16:0:0:128:64:2:29:34:61\124t%s has gone |cffff0000offline|r."
BN_INLINE_TOAST_FRIEND_ONLINE = "\124TInterface\\FriendsFrame\\UI-Toast-ToastIcons.tga:16:16:0:0:128:64:2:29:34:61\124t%s has come |cff00ff00online|r."
CHAT_BN_WHISPER_GET = "From |cff1eff00%s:\32|r"
CHAT_BN_WHISPER_INFORM_GET = "To |cff1eff00%s:\32|r"
CHAT_FLAG_AFK = "[AFK] "
CHAT_FLAG_DND = "[DND] "
CHAT_FLAG_GM = "[GM] "
CHAT_YOU_CHANGED_NOTICE = "|Hchannel:%d|h[%s]|h"
ERR_FRIEND_OFFLINE_S = "%s has gone |cffff0000offline|r."
ERR_FRIEND_ONLINE_SS = "|Hplayer:%s|h[%s]|h has come |cff00ff00online|r."
ERR_SKILL_UP_SI = "%s |cff1eff00%d|r"
FACTION_STANDING_DECREASED = "|3-7(%s) -%d"
FACTION_STANDING_INCREASED = "|3-7(%s) +%d"

--[[ Misc ]]

PVPBATTLEGROUND_WINTERGRASPTIMER = "|cffffffffWG: %s|r"
__________________
  Reply With Quote
04-09-11, 03:30 PM   #9
Skylinee
A Murloc Raider
Join Date: Nov 2006
Posts: 5
Thanks alot, got it running now.

Edit: Possible to take it even further by adding profession/experience gains aswell?

+Skinning (421)
replacing
Your skill in skinning has increased to 421.

+621 EXP.
replacing
[Random Mob] dies, you gain 621 experience.

Last edited by Skylinee : 04-09-11 at 03:43 PM.
  Reply With Quote
04-09-11, 03:47 PM   #10
Moxie
A Cobalt Mageweaver
 
Moxie's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 206
Yup. Just take a look here:

https://github.com/tekkub/wow-ui-sou...balStrings.lua
__________________
"Someday we'll look back on this, laugh nervously and quickly change the subject."

"The truth is like sunlight: people used to think it was good for you."
  Reply With Quote
04-10-11, 03:38 AM   #11
karmamuscle
A Cobalt Mageweaver
 
karmamuscle's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2008
Posts: 205
Here is what I got so far Skylinee
Code:
-- Loot, currencies and crafting
LOOT_ITEM = "%s + %s"
LOOT_ITEM_MULTIPLE = "%s + %sx%d"
LOOT_ITEM_SELF = "+ %s"
LOOT_ITEM_SELF_MULTIPLE = "+ %sx%d"
LOOT_ITEM_PUSHED_SELF = "+ %s"
LOOT_ITEM_PUSHED_SELF_MULTIPLE = "+ %sx%d"
LOOT_MONEY = "+ %s"
CHAT_MSG_MONEY = "+ %s"
YOU_LOOT_MONEY = "+ %s"
LOOT_MONEY_SPLIT = "+ %s"
YOU_LOOT_MONEY_GUILD = "+ %s"
LOOT_MONEY_SPLIT_GUILD = "+ %s"
LOOT_ITEM_CREATED_SELF = "+ %s.";
LOOT_ITEM_CREATED_SELF_MULTIPLE = "+ %sx%d."
CURRENCY_GAINED = "+ %s"

-- Achievements by Saiket on wowinterface. http://www.wowinterface.com/forums/showpost.php?p=234112&postcount=6
-- Player name argument must be escaped
local FORMAT_OTHER = "%%s earned %s.";
local FORMAT_SELF = "|cffffffff+|r  %s.";
local GUIDPlayer = UnitGUID( "player" );
--- Shortens achievement earned messages.
local function OnFilter ( self, Event, Format, Name, ... )
  local Achievement = Format:match( "|c%x%x%x%x%x%x%x%x|Hachievement:.-|h.-|h|r" );
  local GUID = select( 10, ... );
  Format = ( GUID == PlayerGUID and FORMAT_SELF or FORMAT_OTHER ):format( Achievement );
  
  return false, Format, Name, ...; -- Name gets added to Format by default UI
end
ChatFrame_AddMessageEventFilter( "CHAT_MSG_ACHIEVEMENT", OnFilter );
ChatFrame_AddMessageEventFilter( "CHAT_MSG_GUILD_ACHIEVEMENT", OnFilter );
	
-- Zone discovering	
ERR_ZONE_EXPLORED = "%s"
ERR_ZONE_EXPLORED_XP = "%s: + %d exp"

-- Skill ups
ERR_SKILL_UP_SI = "%s + %d"

-- Players login/logoff
ERR_FRIEND_OFFLINE_S = "%s |cffff0000 offline|r."
ERR_FRIEND_ONLINE_SS = "|Hplayer:%s|h%s|h |cff00ff00 online|r."
BN_INLINE_TOAST_FRIEND_OFFLINE = "\124TInterface\\FriendsFrame\\UI-Toast-ToastIcons.tga:16:16:0:0:128:64:2:29:34:61\124t%s |cffff0000offline|r.";
BN_INLINE_TOAST_FRIEND_ONLINE = "\124TInterface\\FriendsFrame\\UI-Toast-ToastIcons.tga:16:16:0:0:128:64:2:29:34:61\124t%s |cff00ff00online|r.";
BN_TOAST_OFFLINE = " |cffff0000offline|r."
BN_TOAST_ONLINE = " |cff00ff00online|r."
	
-- Quests
ERR_QUEST_REWARD_EXP_I = "+ %d exp."
ERR_QUEST_REWARD_ITEM_MULT_IS = "+ %sx%d."
ERR_QUEST_REWARD_ITEM_S = "+ %s."
ERR_QUEST_REWARD_MONEY_S = "+ %s."
__________________
55 89 144 233 377 610 987 1597 2584 4181 6765
  Reply With Quote
04-10-11, 05:03 AM   #12
Skylinee
A Murloc Raider
Join Date: Nov 2006
Posts: 5
Originally Posted by ckramme View Post
Here is what I got so far Skylinee
Code:
-- Loot, currencies and crafting
LOOT_ITEM = "%s + %s"
LOOT_ITEM_MULTIPLE = "%s + %sx%d"
LOOT_ITEM_SELF = "+ %s"
LOOT_ITEM_SELF_MULTIPLE = "+ %sx%d"
LOOT_ITEM_PUSHED_SELF = "+ %s"
LOOT_ITEM_PUSHED_SELF_MULTIPLE = "+ %sx%d"
LOOT_MONEY = "+ %s"
CHAT_MSG_MONEY = "+ %s"
YOU_LOOT_MONEY = "+ %s"
LOOT_MONEY_SPLIT = "+ %s"
YOU_LOOT_MONEY_GUILD = "+ %s"
LOOT_MONEY_SPLIT_GUILD = "+ %s"
LOOT_ITEM_CREATED_SELF = "+ %s.";
LOOT_ITEM_CREATED_SELF_MULTIPLE = "+ %sx%d."
CURRENCY_GAINED = "+ %s"

-- Achievements by Saiket on wowinterface. http://www.wowinterface.com/forums/showpost.php?p=234112&postcount=6
-- Player name argument must be escaped
local FORMAT_OTHER = "%%s earned %s.";
local FORMAT_SELF = "|cffffffff+|r  %s.";
local GUIDPlayer = UnitGUID( "player" );
--- Shortens achievement earned messages.
local function OnFilter ( self, Event, Format, Name, ... )
  local Achievement = Format:match( "|c%x%x%x%x%x%x%x%x|Hachievement:.-|h.-|h|r" );
  local GUID = select( 10, ... );
  Format = ( GUID == PlayerGUID and FORMAT_SELF or FORMAT_OTHER ):format( Achievement );
  
  return false, Format, Name, ...; -- Name gets added to Format by default UI
end
ChatFrame_AddMessageEventFilter( "CHAT_MSG_ACHIEVEMENT", OnFilter );
ChatFrame_AddMessageEventFilter( "CHAT_MSG_GUILD_ACHIEVEMENT", OnFilter );
	
-- Zone discovering	
ERR_ZONE_EXPLORED = "%s"
ERR_ZONE_EXPLORED_XP = "%s: + %d exp"

-- Skill ups
ERR_SKILL_UP_SI = "%s + %d"

-- Players login/logoff
ERR_FRIEND_OFFLINE_S = "%s |cffff0000 offline|r."
ERR_FRIEND_ONLINE_SS = "|Hplayer:%s|h%s|h |cff00ff00 online|r."
BN_INLINE_TOAST_FRIEND_OFFLINE = "\124TInterface\\FriendsFrame\\UI-Toast-ToastIcons.tga:16:16:0:0:128:64:2:29:34:61\124t%s |cffff0000offline|r.";
BN_INLINE_TOAST_FRIEND_ONLINE = "\124TInterface\\FriendsFrame\\UI-Toast-ToastIcons.tga:16:16:0:0:128:64:2:29:34:61\124t%s |cff00ff00online|r.";
BN_TOAST_OFFLINE = " |cffff0000offline|r."
BN_TOAST_ONLINE = " |cff00ff00online|r."
	
-- Quests
ERR_QUEST_REWARD_EXP_I = "+ %d exp."
ERR_QUEST_REWARD_ITEM_MULT_IS = "+ %sx%d."
ERR_QUEST_REWARD_ITEM_S = "+ %s."
ERR_QUEST_REWARD_MONEY_S = "+ %s."
Allright, thanks alot.
  Reply With Quote
04-13-11, 08:26 AM   #13
Porsha
A Black Drake
Join Date: Apr 2008
Posts: 88
I found what controls the exp chat message however, I want to change the text from:

Rat dies, you gain 10 exp.

TO

+10exp.

Cant seem to get rid of the %s because if you simply change it to:

COMBATLOG_XPGAIN_FIRSTPERSON = "|c0000ffff+|r %dxp!";

it returns some looong number.

Basically trying to get rid of the name of the Mob that died and have just the exp number showing.
  Reply With Quote
04-13-11, 11:29 AM   #14
Moxie
A Cobalt Mageweaver
 
Moxie's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 206
Try:

Code:
COMBATLOG_XPGAIN_FIRSTPERSON_UNNAMED = "|c0000ffff+|r %dxp!"
__________________
"Someday we'll look back on this, laugh nervously and quickly change the subject."

"The truth is like sunlight: people used to think it was good for you."
  Reply With Quote
04-13-11, 11:51 AM   #15
Porsha
A Black Drake
Join Date: Apr 2008
Posts: 88
Originally Posted by Decabah View Post
Try:

Code:
COMBATLOG_XPGAIN_FIRSTPERSON_UNNAMED = "|c0000ffff+|r %dxp!"
Thanks but nope...the global that changes the text is:

COMBATLOG_XPGAIN_FIRSTPERSON = "%s dies, you gain %d experience."

So far I can get:
COMBATLOG_XPGAIN_FIRSTPERSON = "|c0000ffff-%s|r + %dxp"

Which looks like:

-Rat +10xp

Guess I'll have to live with that for now because if you take out the %s then it doesn't work at all.

EDIT: Update - COMBATLOG_XPGAIN_FIRSTPERSON_UNNAMED seems to handle when you gain exp when you use a gathering skill...Like herbing. So that was helpful!

Last edited by Porsha : 04-13-11 at 12:07 PM.
  Reply With Quote
04-13-11, 04:05 PM   #16
Rilgamon
Premium Member
 
Rilgamon's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Sep 2009
Posts: 822
Try
Code:
"%.0s%dxp!"
__________________
The cataclysm broke the world ... and the pandas could not fix it!
  Reply With Quote
04-13-11, 04:09 PM   #17
Moxie
A Cobalt Mageweaver
 
Moxie's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2008
Posts: 206
That works. Going to steal it for my baby alt. Thanks!
__________________
"Someday we'll look back on this, laugh nervously and quickly change the subject."

"The truth is like sunlight: people used to think it was good for you."
  Reply With Quote
04-13-11, 04:27 PM   #18
Porsha
A Black Drake
Join Date: Apr 2008
Posts: 88
Originally Posted by Rilgamon View Post
Try
Code:
"%.0s%dxp!"
/squeels
thank you SO much! Works like a charm!
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Shortening loot messages (moved out of UI Feedback Thread)


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