I haven't read the whole forum due to laziness so this might have been posted already....
I have an idea on how to change the TaxiNode function:
Your version is this:
Code:
--[[
TakeTaxiNode
]]
function smMultiBoxer.OnCommReceive:TAKETAXI(prefix, distribution, sender, nodeid,nodename)
if (sender == UnitName("player")) then return end
if (self.db.profile.autofollowtaxigossip) then
local rname = UnitName(self.db.profile.myquestsharemaster);
if (rname == nil) then
rname = self.db.profile.myquestsharemaster;
end
if (rname ~= sender) then return end
--self:DebugMsg("GotBroadcast "..nodeid.." : "..nodename)
local mynodename = TaxiNodeName(nodeid)
if (mynodename ~= nil) then
if (mynodename == nodename) then
--self:DebugMsg("Taking "..nodeid.." : "..nodename)
tmpTaxiSlave = true
TakeTaxiNode(nodeid)
end
end
end
end
To improve the TaxiNode function, if your toons didn't discover the same Nodes at the same time, so that the ID list is not the exact same order, I have a workaround for this:
Code:
--[[
TakeTaxiNode
]]
function smMultiBoxer.OnCommReceive:TAKETAXI(prefix, distribution, sender, nodeid,nodename)
if (sender == UnitName("player")) then return end
if (self.db.profile.autofollowtaxigossip) then
local rname = UnitName(self.db.profile.myquestsharemaster);
if (rname == nil) then
rname = self.db.profile.myquestsharemaster;
end
if (rname ~= sender) then return end
--self:DebugMsg("GotBroadcast "..nodeid.." : "..nodename)
local mynodename = TaxiNodeName(nodeid)
if (mynodename ~= nil) then
if (mynodename == nodename) then
--self:DebugMsg("Taking "..nodeid.." : "..nodename)
tmpTaxiSlave = true
TakeTaxiNode(nodeid)
------------------------------------------------------------------------------ Added Code ----
elseif (mynodename ~= nodename) then
local x
for x=1, NumTaxiNodes() do
if (TaxiNodeName(x) == nodename) then
mynodename = nodename
nodeid = x
break
end
end
if (mynodename == nodename) then
--self:DebugMsg("Taking "..nodeid.." : "..nodename)
tmpTaxiSlave = true
TakeTaxiNode(nodeid)
end
-------------------------------------------------------------------------- Added Code end ----
end
end
end
end
Connect With Us