From c4ac7c90326116409f1dec8e7a16e422623aaf7d Mon Sep 17 00:00:00 2001 From: atomaka Date: Mon, 25 Jul 2011 16:09:07 -0400 Subject: [PATCH] Use global string for text to allow for non-English clients. NYF --- GemStacker.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/GemStacker.lua b/GemStacker.lua index abb7412..7df4de0 100644 --- a/GemStacker.lua +++ b/GemStacker.lua @@ -6,13 +6,12 @@ function core:OnInitialize() end function core:OnEnable() - self:RegisterEvent('CHAT_MSG_LOOT','StackGems') + self:RegisterEvent('CHAT_MSG_TRADESKILLS','StackGems') end function core:StackGems(_,message) - --LOOT_ITEM_CREATED_SELF = "You create: %s."; - print('stack gems') - --local gem = message:match(LOOT_ITEM_CREATED_SELF) + --LOOT_ITEM_CREATED_SELF = "You create: %s."; /dump LOOT_ITEM_CREATED_SELF:gsub("%%s", "(.-)") + local gem = message:match(LOOT_ITEM_CREATED_SELF:gsub("%%s", "(.-)")) print('found gem',gem) local sourceContainer,sourceSlot,destContainer,destSlot = -1,-1,-1,-1;