• 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!

MoveEvent Thornfire Wolf -> Crystal wolf

Wangsta

TFS Dev/Gobal Tibia Expert
Joined
Dec 7, 2011
Messages
1,083
Reaction score
97
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:
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.
 
doCreateMonster("Crystal Wolf", position, false, true)
What are those false and true for?
 
doCreateMonster("Crystal Wolf", position, false, true)
What are those false and true for?

To make sure it gets created on the same sqm that the thornfire is removed from.
 
Do you have action that extinguishes the fires and appears the Thornfire Wolf?
 
Back
Top