• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Monster search for target

Dominik ms

Member
Joined
Jan 20, 2010
Messages
424
Reaction score
6
Where i can found this script??

I will make: if monster have storage 2500 with number 1 then can not attack players/summons etc
Who can help me??
 

hmm.. i do not know what version use.

try:

creaturescripts\scripts\monsterAttack.lua

LUA:
function onCombat(cid, target)
        if isMonster(cid) and getCreatureStorage(cid, 2500) == 1 then
		return true
	end 
		
        return true
end

creaturescripts\creaturescripts.xml

XML:
<event type="combat" name="monsterAttack" script="monsterAttack.lua" />

end add monsters script [wolf.xml](under '</flags>')
XML:
<script> 
    <event name="monsterAttack"/>
</script>


Of course you need to set a particular monster "doCreatureSetStorage(monsterCid, 2500,1)"

no test i have TFS 0.3.5 ;p
 
Back
Top