Crixpx
New Member
- Joined
- Jan 11, 2015
- Messages
- 70
- Reaction score
- 3
hello
I have a problem with this script. I need to add the function to the exit of the tile I return to the outfit I had when I step on it
is in TFS 0.4
Can somebody help me
this is the script
thanks
I have a problem with this script. I need to add the function to the exit of the tile I return to the outfit I had when I step on it
is in TFS 0.4
Can somebody help me
this is the script
Code:
local female = {lookType = 126, lookHead = 79, lookBody = 91, lookLegs = 91, lookFeet = 91, lookTypeEx = 0, lookAddons = 3}
local male = {lookType = 127, lookHead = 86, lookBody = 86, lookLegs = 86, lookFeet = 86, lookTypeEx = 0, lookAddons = 3}
function onStepIn(cid, item, pos)
if isPlayer(cid) == TRUE then
if getPlayerSex(cid) == 0 then
doCreatureChangeOutfit(cid, female)
else
doCreatureChangeOutfit(cid, male)
end
doSendMagicEffect(getThingPos(cid), 29)
doSendAnimatedText(getPlayerPosition(cid),"Wooaahh!", math.random(01,255))
end
return TRUE
end
thanks