• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

monster attack summon when player have summon

Nubaza

LUA Scripter
Joined
Jun 5, 2011
Messages
330
Solutions
1
Reaction score
21
Location
New Zeland
Hello, as the title sais, how can i add a feature for when a player is hunting and player release a summon or something automatically the monster attack the summon, and when player NO have summon, monster attack player?

Very thanks, otland.
 
function onAttack(cid, target)
if isPlayer(target) and #getCreatureSummons(target) >= 1 then
doMonsterSetTarget(cid, getCreatureSummons(target)[1])
end
return true
end
 
Back
Top