• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Outfit changer

Seanr

New Member
Joined
Jul 11, 2011
Messages
168
Reaction score
3
Location
Mo Town
function onUse(cid, item, fromPosition, itemEx, toPosition)
local v, tmp = math.random(333), getCreatureOutfit(cid)
while isInArray({tmp.lookType, 75, 135, 266, 302}, v) == TRUE or v <= 1 or (v > 160 and v < 192) or v > 333 do
v = math.random(351)
end

tmp.lookType = v
doCreatureChangeOutfit(cid, tmp)
doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_RED)
doCreatureSay(cid, 'Outfit Changed!.', TALKTYPE_ORANGE_1, false, cid, getThingPos(cid))
return TRUE
end







So this is my script and it works fine but, I wanna know If I can remove these newtypes from it: 9,73,264,255,254,243,58 and all outfits players can wear.




EDIT: Fixed :)
 
Last edited:
good job if u need it a text in otland here

Lua Code:
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
 local v, tmp = math.random(333), getCreatureOutfit(cid)
 while isInArray({tmp.lookType, 75, 135, 266, 302}, v) == TRUE or v <= 1 or (v > 160 and v < 192) or v > 333 do
 v = math.random(351)
 end

 tmp.lookType = v
 doCreatureChangeOutfit(cid, tmp)
 doSendMagicEffect(getThingPos(cid), CONST_ME_MAGIC_RED)
 doCreatureSay(cid, 'Outfit Changed!.', TALKTYPE_ORANGE_1, false, cid, getThingPos(cid))
 return TRUE
 end
 
Back
Top