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

Wardrobe Randomizing Outfit

Exmortis

Member
Joined
Jun 27, 2008
Messages
189
Reaction score
5
I would like a script that changes your outfit to something random everytime you rightclick.
Would be nice If it was to give that properties to all wardrobes on the server aswell.
Anyone up for it? :D

TFS 0.2
addOutfitCondition(condition, lookTypeEx, lookType, lookHead, lookBody, lookLegs, lookFeet)

(I did search for it)
 
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local v, tmp = math.random(351), getCreatureOutfit(cid)
	while v == tmp.lookType or v <= 1 or v == 135 or (v > 160 and v < 192) or v > 351 do
		v = math.random(351)
	end

	tmp.lookType = v
	doCreatureChangeOutfit(cid, tmp)
	doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_RED)
	doCreatureSay(cid, 'Your outfit has been changed.', TALKTYPE_ORANGE_1, false, cid, getThingPos(cid))
	return TRUE
end
 
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local v, tmp = math.random(351), getCreatureOutfit(cid)
	while v == tmp.lookType or v <= 1 or v == 135 or (v > 160 and v < 192) or v > 351 do
		v = math.random(351)
	end

	tmp.lookType = v
	doCreatureChangeOutfit(cid, tmp)
	doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_RED)
	doCreatureSay(cid, 'Your outfit has been changed.', TALKTYPE_ORANGE_1, false, cid, getThingPos(cid))
	return TRUE
end

Epic script.

You must spread some Reputation around before giving it to Cykotitan again. <,<
 
Doesn't give GM+CM+GOD outfit anymore.

Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local v, tmp = math.random(351), getCreatureOutfit(cid)
	while v == tmp.lookType or v <= 1 or v == 75 or v == 266 or v == 302 v == 135 or (v > 160 and v < 192) or v > 351 do
		v = math.random(351)
	end
 
	tmp.lookType = v
	doCreatureChangeOutfit(cid, tmp)
	doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_RED)
	doCreatureSay(cid, 'Your outfit has been changed.', TALKTYPE_ORANGE_1, false, cid, getThingPos(cid))
	return TRUE
end
 
Lua:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	local v, tmp = math.random(351), getCreatureOutfit(cid)
	while isInArray({tmp.lookType, 75, 135, 266, 302}, v) == TRUE or v <= 1 or (v > 160 and v < 192) or v > 351 do
		v = math.random(351)
	end
 
	tmp.lookType = v
	doCreatureChangeOutfit(cid, tmp)
	doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_RED)
	doCreatureSay(cid, 'Your outfit has been changed.', TALKTYPE_ORANGE_1, false, cid, getThingPos(cid))
	return TRUE
end
 
Exhaust would be great for this script, since players could abuse this to crash the server? Or maybe they cant? I'm not sure.
 
Back
Top