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

doPlayerRemoveOutfit

I'm doing an event in my server.

The winner will receive an outfit and 30min after he will lose it.
But I don't know how to remove an outfit.
 
First of all, change this in outfits.xml
PHP:
	<outfit id="22" premium="yes" default="0">
		<list gender="0" lookType="336" name="Warmaster"/>
		<list gender="1" lookType="335" name="Warmaster"/>
	</outfit>

To this
PHP:
	<outfit id="22" premium="yes" quest="40001" default="0">
		<list gender="0" lookType="336" name="Warmaster"/>
		<list gender="1" lookType="335" name="Warmaster"/>
	</outfit>

And here is the script
PHP:
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
 
He said he wanted to Add the outfit to the player... That would just act like newtype

LUA:
doSetCreatureOutfit(cid, 336[, time = -1])
It will remove the outfit then?
It will set the player's outfit for a specific time, but if the player logs out or changes his outfit, he loses it
 
Last edited by a moderator:
Back
Top