Nubaza
LUA Scripter
Hello! I've made a script to change all the starter players outfit's random colors.
First go to you data/creaturescripts/scripts/...
Create a outfit.lua and remplace with this:
Add this tag to creaturescripts.xml:
Done, you players when login in the game, his outfit colors will be random changed. Only works one time, later, don't change the colors, works with a simple storage
Credits:
otland.net (Nubaza)
First go to you data/creaturescripts/scripts/...
Create a outfit.lua and remplace with this:
Lua:
function onLogin(cid)
local Vitin = getPlayerStorageValue(cid, 51123)
if Vitin == -1 then
local out = getCreatureOutfit(cid)
doCreatureChangeOutfit (cid, {lookType = out.lookType, lookHead = math.random(0, 132), lookBody = math.random(0, 132), lookLegs = math.random(0, 132), lookFeet = math.random(0, 132), lookAddons = out.lookAddons } )
setPlayerStorageValue(cid, 51123, 1)
end
return true
end
Add this tag to creaturescripts.xml:
Code:
<event type="login" name="Outfita" event="script" value="outfit.lua"/>
Done, you players when login in the game, his outfit colors will be random changed. Only works one time, later, don't change the colors, works with a simple storage
Credits:
otland.net (Nubaza)