I copy pasted code from your post earlier that had the small t
took me about an hour before I worked out it should have been Capital T lol
Code: Select all
(pawn.TargetPtr == self.PetPtr)Code: Select all
local target = self:getTarget();
if (( settings.profile.options.PARTY ) and player.Battling == true ) then
if ( CPawn(target.TargetPtr).Name == GetPartyMemberName(1) ) thenCode: Select all
function evalTargetDefault(address)Um... 'self' has no meaning in the eval function. Also isn't 'target' already defined in the eval function? 'target' is already the target being evaluated. So what you want to do is check to see if it has the party member targeted. I think it should go something like this.lisa wrote:This is the start of the codeCode: Select all
local target = self:getTarget(); if (( settings.profile.options.PARTY ) and player.Battling == true ) then if ( CPawn(target.TargetPtr).Name == GetPartyMemberName(1) ) then
Code: Select all
local targettarget = target:getTarget()
if (( settings.profile.options.PARTY ) and player.Battling == true ) then
if targettarget and targettarget.Name == GetPartyMemberName(1) then