• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Random Monster Outfit

bitta1

New Member
Joined
Mar 21, 2011
Messages
12
Reaction score
0
This is a action script that allows u to use a christmas token and turn into any monster outfit :)

PHP:
function isAtRange(from, to, value)
    return from <= value and value <= to
end
 
local null, range = {0,1,135,225,30,75,266,302,336,335,329,328}, {161,191}
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
    local output = math.random(2,351)
    if not isAtRange(range[1],range[2],output) and not isInArray(null,output) and not isInArray(maleOutfits,output) and not isInArray(femaleOutfits,output) then
        doRemoveItem(item.uid,1)
        doSendMagicEffect(getThingPos(cid),12)                
        doCreatureChangeOutfit(cid, {lookType = output})
        doPlayerSendCancel(cid, 'You got a random outfit!')
	end
return true
end

in actions.xml

PHP:
	<action itemid="6527" event="script" value="randomoutfit.lua"/>

Hope u like it :) Rep+
 
Back
Top