MMOwned,
Currently under development by me and another unamed programmer is an addon which will be used to destroy gearscore. The current gearscore only works now by sharing via guild what you see.
Attached is the current copy that works about 30% of the time. Since I am working on it. I would love to have help with the LUA as I need to figure a way to bypass the Auth part.
Code:
local frmD2GS = CreateFrame("Frame")
frmD2GS:RegisterEvent("ADDON_LOADED")
frmD2GS:RegisterEvent("CHAT_MSG_ADDON")
local tblTemp = {}
function frmD2GS:OnEvent(event, prefix, message, channel, sender)
if (event == "ADDON_LOADED") and (prefix == "D2GS") then print("Thanks for trying out D2GS!")
elseif (event == "CHAT_MSG_ADDON" and prefix == "GSY" and sender ~= UnitName("player")) then
prefix == "GSY_Request"
table.wipe(tblTemp)
local strTemp = ""
for s in string.gmatch(message, "[^$]+") do
tinsert(tblTemp, s)
end
if tblTemp[#tblTemp] ~= "22281:0" then
tblTemp[2] = tostring(math.random(5500, 6500))
tblTemp[3] = tostring(tonumber(tblTemp[3] + 1))
tblTemp[5] = tostring(math.random(250, 300))
tblTemp[11] = UnitName("player")
tblTemp[#tblTemp] = "22281:0"
for i = 1, getn(tblTemp) do
strTemp = strTemp..tblTemp[i].."$"
end
if (string.len(strTemp) <= 251) then
SendAddonMessage(prefix, strTemp, channel)
else
tblTemp[11] = ""
SendAddonMessage(prefix, strTemp, channel)
end
end
end
-------------
elseif (event == "CHAT_MSG_ADDON" and prefix == "GSY_Request" and sender ~= UnitName("player")) then
table.wipe(tblTemp)
local strTemp = ""
for s in string.gmatch(message, "[^$]+") do
tinsert(tblTemp, s)
end
if tblTemp[#tblTemp] ~= "22281:0" then
tblTemp[2] = tostring(math.random(5500, 6500))
tblTemp[3] = tostring(tonumber(tblTemp[3] + 1))
tblTemp[5] = tostring(math.random(250, 300))
tblTemp[11] = UnitName("player")
tblTemp[#tblTemp] = "22281:0"
for i = 1, getn(tblTemp) do
strTemp = strTemp..tblTemp[i].."$"
end
if (string.len(strTemp) <= 251) then
SendAddonMessage(prefix, strTemp, channel)
else
tblTemp[11] = ""
SendAddonMessage(prefix, strTemp, channel)
end
end
end
--------------
elseif (event == "CHAT_MSG_ADDON" and prefix == "GearScore" and sender ~= UnitName("player")) then
table.wipe(tblTemp)
local strTemp = ""
for s in string.gmatch(message, "[^$]+") do
tinsert(tblTemp, s)
end
if tblTemp[#tblTemp] ~= "22281:0" then
tblTemp[2] = tostring(math.random(5500, 6500))
tblTemp[3] = tostring(tonumber(tblTemp[3] + 1))
tblTemp[5] = tostring(math.random(250, 300))
tblTemp[11] = UnitName("player")
tblTemp[#tblTemp] = "22281:0"
for i = 1, getn(tblTemp) do
strTemp = strTemp..tblTemp[i].."$"
end
if (string.len(strTemp) <= 251) then
SendAddonMessage(prefix, strTemp, channel)
else
tblTemp[11] = ""
SendAddonMessage(prefix, strTemp, channel)
end
end
end
-------------
end
frmD2GS:SetScript("OnEvent", frmD2GS.OnEvent)
A working copy will be finished tonight for all to use!