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

Script Color

Noupz

New Member
Joined
Jul 13, 2010
Messages
126
Reaction score
1
I was wondering if someone makes me a script like, if the guy puts demon helmet ( red) hair turns red , goes down the steel helmet ( white ) hair is white .. can anyone help me ? It would be the same for the rest of the body procedure
 
Well it's definitely possible.
You'd have to create a script for each piece of armor.
What TFS are you using?
 
movements.xml
Code:
<movevent type="Equip" level="1" itemid="8820" slot="head" event="script" value="test39.lua"/>
test39.lua
Code:
function onEquip(cid, item, slot)
   local outfit = getCreatureOutfit(cid)
   tmp = outfit
   tmp.lookType = outfit.lookType
   tmp.lookHead = outfit.lookHead
   tmp.lookLegs = outfit.lookLegs
   tmp.lookBody = outfit.lookBody
   tmp.lookFeet = outfit.lookFeet
   tmp.lookAddons = outfit.lookAddons
   doCreatureChangeOutfit(cid, tmp)
   return true
end
You'll have to change it based on the item being equipped.. but generally just change the lines to the colour you want.
Code:
tmp.lookHead = outfit.lookHead
tmp.lookHead = 94
 
That requires a tibia.spr edit in the client.
Possible, yes. Can it be done with a simple script? No unfortunately.
 
Back
Top