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

I need script onStepIn

Morrison

Intermediate OT User
Joined
Mar 15, 2009
Messages
283
Solutions
3
Reaction score
123
Location
Exive me
GitHub
none
I need script onStepIn the players change colors outfit

Example:
One player step on a tile and the player shange color outfit.

local outfit = {lookType = 137, lookHead = 22, lookBody = 22, lookLegs = 13, lookFeet = 101, lookTypeEx = 101, lookAddons = 3}
 
Last edited:
LUA:
function onStepIn(cid, item, frompos, item2, topos)
local outfit = {lookType = 137, lookHead = 22, lookBody = 22, lookLegs = 13, lookFeet = 101, lookTypeEx = 101, lookAddons = 3}
    if item.actionid == 5031 and isPlayer(cid) then
            doCreatureChangeOutfit(cid, outfit)
	end
	return true
end
function onStepOut(cid, item, frompos, item2, topos)
    if item.actionid == 5032 and isPlayer(cid) and hasCondition(cid, CONDITION_OUTFIT) and getCreatureOutfit(cid).lookType == outfit.lookType) then
	        doRemoveCondition(cid, CONDITION_OUTFIT)
	end
	return true
end
 
Back
Top