LucasFerraz
Systems Analyst
Is there a way to remove outfits?
LUA:
doPlayerRemoveOutfit
doPlayerRemoveOutfit
doCreatureChangeOutfit(cid, outfit)
local storage = 40000 ------ enter storage for outfit here
doSetPlayerStorage(storage, -1)
<outfit id="22" premium="yes" default="0">
<list gender="0" lookType="336" name="Warmaster"/>
<list gender="1" lookType="335" name="Warmaster"/>
</outfit>
<outfit id="22" premium="yes" quest="40001" default="0">
<list gender="0" lookType="336" name="Warmaster"/>
<list gender="1" lookType="335" name="Warmaster"/>
</outfit>
function removeOutfit
doSetPlayerStorage(cid,40001, -1)
end
if getPlayerSex(cid) == 0 then
doPlayerAddOutfit(cid,336, 0)
elseif getPlayerSex(cid) == 1 then
doPlayerAddOutfit(cid,335, 0)
end
addEvent(removeOutfit, 1800 * 1000)
return TRUE
end
doSetCreatureOutfit(cid, outfit[, time = -1])
doSetCreatureOutfit(cid, 336[, time = -1])
It will set the player's outfit for a specific time, but if the player logs out or changes his outfit, he loses itIt will remove the outfit then?LUA:doSetCreatureOutfit(cid, 336[, time = -1])