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

NPC Giving Outfit & One Question.

TriamerA

The Mystic One.
Joined
Nov 16, 2008
Messages
1,257
Reaction score
18
Location
Poland
Hiho I need an example of NPC which unlocks you a outfit not addon.
Also I need to know how to make people do not have all outfits while they are creating the characters. Rep x3 for help :)
 
You need to set in outfits.xml storage="xx" for every outfit. And quests you can do just by setting this storage value to 1, fe:

setPlayerStorageValue(cid, xx, 1)
 
Sorry but I have to post that again, when you change freepremium to no, when you buy a premium account you have all outfits then, so how to change that??
 
Slawkens just told you.

Open outfits.xml

example:
change,
LUA:
<outfit type="0" looktype="140" enabled="1" name="Noblewoman" premium="1"/>
for
LUA:
<outfit type="0" looktype="140" enabled="1" name="Noblewoman" premium="1" quest="5000"/>
In this case you need to make a quest that sets your storage 5000 and value to 1 in order to gain that outfit.
just add quest="xxx" to every outfit you want to have a quest for
 
If I'm using 0.3.5
How would I do it?

LUA:
<outfit id="16" premium="yes" default="0">
		<list gender="0" lookType="252" name="Norsewoman"/>
		<list gender="1" lookType="251" name="Norseman"/>
	</outfit>

Gonna test some, but people still post if you know...
 
From 0.3.5 you can use doPlayerAddOutfitId(cid, outfitId, addon), there is no need to use storages anymore :thumbup: (But its also possible if you want)
 
Back
Top