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

MoveEvents Transform

alissonfgp

LUA, C, C++, C#
Joined
Jul 13, 2011
Messages
111
Reaction score
29
Location
Brazil
I need a script in which the monster steps on a certain tile and turns into another, if possible.
Type the Thornfire Wolf transform to Crystal Wolf.
 
Lua:
function onStepIn(cid, item, position, fromPosition)

local firstmonster = "Thornfire Wolf"
local transformmonster = "Crystal Wolf"

	if getCreatureName(getTopCreature(position).uid) == firstmonster then
		doRemoveCreature(getTopCreature(position).uid)
		doSummonCreature(transformmonster, position)
		doSendMagicEffect(position, CONST_ME_MAGIC_GREEN)
	end
	return true
end
 
Last edited:
Back
Top