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

[request] movement trophy transform

GMNino

New Member
Joined
Jun 30, 2007
Messages
119
Reaction score
3
some one help me to make a script,

if you put in helmet slot for example demon trophy, u get demon outfit, and if you get out demon trophy set ur normal outfit.

Code:
local outfit =
{
lookType = 55,
lookHead = 0,
lookBody = 0,
lookLegs = 0,
lookFeet = 0,
lookAddons = 0
}


function onEquip(cid, item, slot)
doSetCreatureOutfit(cid, outfit, -1)
doCreatureSay(cid, "transform", TALKTYPE_ORANGE_1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end

function onDeEquip(cid, item, slot)
doRemoveCondition(cid, CONDITION_OUTFIT)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end

Code:
	<movevent event="DeEquip" itemid="7396" slot="head" function="onDeEquipItem" script="looktype.lua"/>
	<movevent event="Equip" itemid="7396" slot="head" function="onEquipItem" script="looktype.lua">
		<vocation name="Sorcerer" showInDescription="1"/>
		<vocation name="Druid" showInDescription="1"/>
		<vocation name="Paladin" showInDescription="1"/>
		<vocation name="Knight" showInDescription="1"/>
		<vocation name="Master Sorcerer" showInDescription="0"/>
		<vocation name="Elder Druid" showInDescription="0"/>
		<vocation name="Royal Paladin" showInDescription="0"/>
		<vocation name="Elite Knight" showInDescription="0"/>
	</movevent>

i use tfs 0.2
in tibia "you cannot dress this object there"

in items i put in item 7396 head, but dont work need help.
 
Last edited:
Back
Top