Use global string for text to allow for non-English clients. NYF

This commit is contained in:
Andrew Tomaka 2011-07-25 16:09:07 -04:00
parent abfc111a78
commit c4ac7c9032

View file

@ -6,13 +6,12 @@ function core:OnInitialize()
end end
function core:OnEnable() function core:OnEnable()
self:RegisterEvent('CHAT_MSG_LOOT','StackGems') self:RegisterEvent('CHAT_MSG_TRADESKILLS','StackGems')
end end
function core:StackGems(_,message) function core:StackGems(_,message)
--LOOT_ITEM_CREATED_SELF = "You create: %s."; --LOOT_ITEM_CREATED_SELF = "You create: %s."; /dump LOOT_ITEM_CREATED_SELF:gsub("%%s", "(.-)")
print('stack gems') local gem = message:match(LOOT_ITEM_CREATED_SELF:gsub("%%s", "(.-)"))
--local gem = message:match(LOOT_ITEM_CREATED_SELF)
print('found gem',gem) print('found gem',gem)
local sourceContainer,sourceSlot,destContainer,destSlot = -1,-1,-1,-1; local sourceContainer,sourceSlot,destContainer,destSlot = -1,-1,-1,-1;