Hello ther! I have made an script that changes your outfit to an random monster outfit. Only vip players ingame will be able to press and use it.
Tested 0.3.6+
Please dont post your verisions of this script. (Respect)
Hopefully it usefull for someone Repp? (A)
First go to data/actions/scripts and make an file named changeoutfit.lua
And put inside:
After go to data/actions and open actions.xml
Then paste this row:
Configuration in the script.
Then go to rme and put the stue or what ever item you want to use and put the unique ID like:
Some screens:
Tested 0.3.6+
Please dont post your verisions of this script. (Respect)
Hopefully it usefull for someone Repp? (A)
First go to data/actions/scripts and make an file named changeoutfit.lua
And put inside:
Lua:
local price = 100000 --- How much it gonna cost. This is 100k
local duration = 18000 --- How long time you gonna have the outfit.
local monsters = {"orc warrior", "pirate cutthroat", "dworc voodoomaster", "dwarf guard", "minotaur mage"} --- Outfitnames. You can add more.
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerVipDays(cid) < 1 then
doPlayerSendTextMessage(cid,19,"You need to be vip to change to monster outfit!")
elseif getPlayerVipDays(cid) >= 1 then
doPlayerRemoveMoney(cid, price)
doSetMonsterOutfit(cid,monsters[math.random(#monsters)],duration*1000)
doPlayerSendTextMessage(cid, 20, 'You got a random outfit for '.. price ..' gold coins!')
else
doPlayerSendTextMessage(cid, 20, 'You don\'t have '..price..' gold coins required for the random outfit!')
doSendMagicEffect(getThingPos(cid),12)
end
return true
end
After go to data/actions and open actions.xml
Then paste this row:
Lua:
<action uniqueid="65415" event="script" value="changeoutfit.lua"/>
Configuration in the script.
Then go to rme and put the stue or what ever item you want to use and put the unique ID like:
Some screens:
Last edited: