11-25-2013, 12:29 AM
Made a very quick fix so that it doesn't attack new targets when your pet is tanking, though it's only working for Titan-Egi at the moment. It's possible to modify this further to include all player pets as well as switching to check that the ownerid is the player instead of just checking the nearest pet to the player. The issue arises because player pets aren't officially classed as party members so the current "Party Mode" method doesn't work for them.
Just add that after which is on line 382 in SpecificHunting.lua.
PHP Code:
local petlist= EntityList("nearest,contentid=1403")
local petID = ""
if ( petlist) then
local i,entity = next(petlist)
while (i~=nil and entity ~=nil)
do petID = tostring(entity.id)
local el = EntityList("lowesthealth,alive,attackable,onmesh,targeting="..petID)
if ( el ) then
local i,e = next(el)
if (i~=nil and e~=nil) then
if Debugy == "1" then
d("Target PT Mode, EntityID= "..tostring(e))
end
return e
end
end
i,entity = next(petlist,i)
end
end
Just add that after
PHP Code:
if PartyMode == "1" then