TaurenLess
New Member
If the target monster is one player and if the player has summons, the monster has a 100% chance of attacking the summon, else, the monster attacking player.
It's possible?
I've tried this in creaturescripts:
AND NOT WORK =(
In which file of sources make it?
Sorry for my bad english.
Thx
It's possible?
I've tried this in creaturescripts:
PHP:
function onCombat(cid, target)
local summons = getCreatureSummons(target)
if target == isPlayer then
if table.maxn(summons) > 0 then
doMonsterSetTarget(cid, getCreatureSummons(target)[1])
end
end
return true
end
In which file of sources make it?
Sorry for my bad english.
Thx