doMonsterChangeTarget(cid)
doMonsterSetTarget(cid, target)
local playersummons = eyeyee
function onThink(cid, interval)
if getCreatureSummons(cid) eyeyee) => 1 then
doMonsterChangeTarget(cid)
doMonsterSetTarget(cid, target) eyeyee)
if getCreatureSummons(cid) eyeyee) => 1 then getPlayerFlagValue(cid, flag) false
end
return true
end
end
function onAttack(cid, target)
if isMonster(cid) then
if isPlayer(target) then
monster = getCreatureSummons(target)[1]
doMonsterChangeTarget(cid)
doMonsterSetTarget(cid, monster)
return false
end
end
return false
end