What the hell are you people talking on about?
He just wants everyone to have 1 outfit.
Go to data/XML/outfits.xml and remove all outfits except that one that you want to remain.
Since it's a custom outfit, I believe you'll need to have a correctly set blend overlay for color changing in data editor (but I suppose you did this already otherwise you'd be asking for it too).
This way, your outfits.xml script would look like this, just edit the green parts:
Code:
<?xml version="1.0"?>
<outfits>
<outfit id="[COLOR="#006400"]xx[/COLOR]">
<list gender="0" lookType="[COLOR="#006400"]xxx[/COLOR]" name="[COLOR="#006400"]Nameofoutfit[/COLOR]"/>
<list gender="1" lookType="[COLOR="#006400"]xxx[/COLOR]" name="[COLOR="#006400"]Nameofoutfit[/COLOR]"/>
</outfit>
</outfits>
Also, this script is from 0.3.6, some stuff might be different in your distro version, but you get the general idea. I hope this helped.
---------
EDIT:
I read furthermore through the thread and saw that you want people to get 1 random outfit out of many, and then have that 1 only?
I'll explain to you how to do it, however I don't have time to create the script.
Let's say you want the player to get a random outfit among 10 of them. You will need a storage value to determine which outfit has been given to the player. Since there are 10 outfits, each of them will use one storage. (for example, from 980 to 990)
In your login.lua script, make a function which will only be activated upon the first login of the player. On this login, he should have a randomly set storage value which will give him an outfit. That means
Code:
doPlayerSetStorageValue(cid, math.random(980,990), 1)
This will give 1 outfit to him. Which - depends on how you set it in outfits.xml. In there (at least in newer versions), there is a flag called Quest, which actually stands for a storage value. So, the following example:
Code:
<outfit id="xx" quest="[COLOR="#00FF00"]990[/COLOR]">
<list gender="0" lookType="279" name="xx"/>
<list gender="1" lookType="278" name="xx"/>
</outfit>
Means that the player who has
990 storage value set to
1 will have this outfit available to him.
If you still don't manage to do this, I can help when I'm back later, however it's pretty simple as you can see. Good luck.