Marcelo Druida
Intermediate OT User
Hello!
Require:
TFS 1.x
https://otland.net/threads/monster-onselecttarget-self-target.234915/
Passive monster:
Monster that attack only strong players
Create a lua file in data/monster/scripts
Insert into monster XML after manacost
script="file.lua"
Enjoy!
Require:
TFS 1.x
https://otland.net/threads/monster-onselecttarget-self-target.234915/
Passive monster:
Code:
function onSelectTarget(self, target)
if target:getTarget() == self then
return true
end
return false
end
Monster that attack only strong players
Code:
function onSelectTarget(self, target)
if target:getLevel() >= 100 then
return true
end
return false
end
Create a lua file in data/monster/scripts
Insert into monster XML after manacost
script="file.lua"
Enjoy!
Last edited: