Script that will turn thornfire wolf into crystal wolf when it steps into a bog tile. Made this script for someone in support and thought I should post it here in case anyone else needs it:
Add in movements.xml:
Create file in movements/scripts:
Rep++ if this helped you.
Add in movements.xml:
XML:
<movevent type="StepIn" itemid="13863" event="script" value="thornfire.lua"/>
Create file in movements/scripts:
Lua:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if getCreatureName(cid) == "Thornfire Wolf" then
return doRemoveCreature(cid), doCreateMonster("Crystal Wolf", position, false, true) end
end
Rep++ if this helped you.