Fixing WoW's Hack Addon Feature: "Send this page to another hack user"
First, thanks for the author of WoW Hack addon - it's an editor for Lua in game.
Until now, I've used 'Hack' from time-to-time, but now I'm testing dual-box and I'm doing my own script in order to better control things. Only today, I've noticed that the "Send this page to another hack user" feature isn't working anymore. So after putting my head into Hack.lua/Hack.xml code for a couple of hours - I know, I'm too newbie yet programming Wow addon / lua :( - I've fixed it.
While I'm posting here...
The changes were:
Until now, I've used 'Hack' from time-to-time, but now I'm testing dual-box and I'm doing my own script in order to better control things. Only today, I've noticed that the "Send this page to another hack user" feature isn't working anymore. So after putting my head into Hack.lua/Hack.xml code for a couple of hours - I know, I'm too newbie yet programming Wow addon / lua :( - I've fixed it.
While I'm posting here...
The changes were:
Hack.xmlHack[event](self, event, ...) Hack.OnLoad(self) PanelTemplates_SetNumTabs(HackListFrame, 2) PanelTemplates_SetTab(HackListFrame, 1) PlaySound('igSpellBookOpen') PlaySound('igSpellBookClose')
1) Hack.lua local PLAYERNAME = GetUnitName('player') -- 2013-11-19 mwb: fixed for wow 5.4.1 RegisterAddonMessagePrefix("Hack1"); RegisterAddonMessagePrefix("Hack2"); RegisterAddonMessagePrefix("HackAck"); RegisterAddonMessagePrefix("HackNack"); StaticPopupDialogs.HackAccept = {
2) Hack.lua function Hack.Send() -- 2013-11-19 mwb: fixed for wow 5.4.1 menu[2].disabled = GetNumGroupMembers() == 0 menu[3].disabled = not UnitInRaid('player') menu[4].disabled = not IsInGuild() EasyMenu(menu, HackSendMenu, 'cursor', nil, nil, 'MENU') end
3) Hack.lua function Hack.SendPage(page, channel, name) -- 2013-11-19 mwb: fixed for wow 5.4.1 local id = 'Hack' .. (time()%2+1); local chunksize = 254 - #id local pagename = format('%s [from %s on %s]', page.name, PLAYERNAME, date()) SendAddonMessage(id, pagename, channel, name)
4) Hack.lua do -- receive page local receiving = {} -- 2013-11-19 mwb: fixed for wow 5.4.1 function Hack.CHAT_MSG_ADDON(self, msg, prefix, body, channel, sender) if sender == PLAYERNAME then return end local id
For your convenience, you can download it here: Hack addon already updated for World of Warcraft 5.4.1.
0 Comments:
Post a Comment
<< Home