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

Monster outfit on lever

This script is lever script, changes your outfit randomly into monsters [Infinte USE]., You could put the actionID of this script on a statue or stone or something.. [ I choosed the ITEM ID 'ACTIONID' 11090, As to be a statue, if you click on the statue, it changes your outfit randomly..
At actions/scripts/create Outfit Lever.lua and paste this in it:
Code:
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
At actions/actions.XML paste this..:
Code:
<action itemid="Put here Outfit Changer itemID" script="Outfit Lever.lua"/>
If I helped, Click [here]
It worked great with me!
 
Last edited:
Code:
<action itemid="Put here Outfit Changer itemID" script="Outfit Lever.lua"/>
So I put a action id on here and action id On a stone or what i want ?
 
Code:
<action itemid="Put here Outfit Changer itemID" script="Outfit Lever.lua"/>
So I put a action id on here and action id On a stone or what i want ?

Yes, but you don't need to put another action id on the stone or statue!
EX: I'll make a statue that has ITEM ID [11090] as outfit changer, So it would look like this:
Code:
<action itemid="11090" script="Outfit Lever.lua"/>
And then, go summon a statue [/i 11090], and click, and your outfit is changed.
 
But I want it to be on a lever . and If I have like that U will get monster outfit on all statues ?
Yea, on all statues that has [11090],
But if you want a nicer, make it lever..
Code:
<action itemid="Any action ID" script="Outfit Lever.lua"/>
EX: /attr action 1347, on the lever, and click on the lever, so it changes the outfit!
 
This script is lever script, changes your outfit randomly into monsters [Infinte USE]., You could put the actionID of this script on a statue or stone or something.. [ I choosed the ITEM ID 'ACTIONID' 11090, As to be a statue, if you click on the statue, it changes your outfit randomly..
At actions/scripts/create Outfit Lever.lua and paste this in it:
Code:
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
At actions/actions.XML paste this..:
Code:
<action itemid="Put here Outfit Changer itemID" script="Outfit Lever.lua"/>
If I helped, Click [here]
It worked great with me!


There is some kinda problem with this script though, when you spam it
u regain hp and mana, so a player can go around with 5000 mana as level 20
 
Back
Top