Use global string for text to allow for non-English clients. NYF
This commit is contained in:
parent
abfc111a78
commit
c4ac7c9032
1 changed files with 3 additions and 4 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue