Hello, I need a very simple script for TFS 1.3 that makes monsters disappear when they pass through (smoke ID "1505")
Screen for attention:
Screen for attention:
Attachments
-
1.jpg56.3 KB · Views: 17 · VirusTotal
local smokeEvent = MoveEvent()
function smokeEvent.onStepIn(creature, item, pos, fromPosition)
if not creature:isMonster() then
return false
end
pos:sendMagicEffect(CONST_ME_POFF)
creature:remove()
return true
end
smokeEvent:id(1505)
smokeEvent:register()
he didn't really specify if wanted all or some of them, so you can't say it's invalid, but yes if you want it that way just register it by actionid or check for positions instead.
btw if need further adjustments, let me know : )
removes monster when it steps on this itemHello.. how would the script look like?
Where is the folder where the file is going to be put?
<item id="1505" name="smoke">
<attribute key="type" value="magicfield" />
<attribute key="replaceable" value="false" />
</item>