Dipper - in your shaman and arch mage versions you posted, is the only change on that from Pharmers version is the specific ID # for resurrection - or did you put in specific abilities for those classes? I suppose that's kind of what confused me, I was assuming it didn't work because I wasn't a zealot.
The section of code that triggers Zeabot to look for friendly dead targets to ressurect was "commented" out by Pharmer, most likely so people using the bot with other classes wouldn't see slowdown caused by it trying to use a spell the class doesn't have.
I, in essence, added that part back in, and put the spell IDs for the respective classes in the ressurection part of the code.
I'll show you:
Line 1048:
Code:
if HackPack.Casting == 0 then
if HackPack.Zeabot == true then
local MyGUID = GetPlayer().GUID
if HackPack.CheckForZeabot() == false then
-- if GetEntity(MyGUID).healthPercent >= 96 then
-- HackPack.CheckForDead()
-- end
That's the part of the code that we're looking at primarily. Anything written on a line that starts with "--" is ignored, so once you take those out, zeabot thinks this:
If I'm not casting, I'm enabled, and my health is above or equal to 96%, then I'll check for nearby dead targets.
That's to turn on checking for dead. To get it to use your ressurection spell, you have to edit this section:
Line 1095:
Code:
function HackPack.CheckForDead()
if HackPack.RezWaitTime > 0 then
return
end
local thisAbility = GetAbilityData(8555)
local minRange, maxRange = GetAbilityRanges(8555)
local strMaxRange = tostring(maxRange)
local CastTime = math.floor(GetAbilityCastTime(thisAbility.id))
for GUID , Details in pairs(EntityList("los,player,friendly,dead,maxdistance="..strMaxRange)) do
Target(GUID)
HackPack.Cast(thisAbility.id)
RezWaitTime = math.floor(thisAbility.reuseTimerMax)
HackPack.Casting = CastTime
return
end
return
end
Ability ID of the class's ressurection spell is highlighted in red.
Here are the ability IDs for the different class' res spells:
AM: 9246
DoK: 9558
RP: 1598
Sham: 1908
WP: 8248
Zea: 8555