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

Outfit Quest

Xyzyk

RudziutOTS Maker
Joined
Jun 14, 2008
Messages
39
Reaction score
0
Location
Poland
How can I make that outfit is unavailable for player until he do quest with storage 11032 (TFS 0.3.6)
 
chose the outfit that you want, add quest="11032" in data/xml/outfits.xml, after default="0".

LUA:
<outfit id="1" premium="yes" default="0">
->
LUA:
<outfit id="1" premium="yes" default="0" quest="11032">
then, make a quest and in the reward, use lua functions that give to the players a outfit!

example:
LUA:
queststatus = getPlayerStorageValue(cid, 11032)
if queststatus <= 0 then
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have won 'x' outfit")
setPlayerStorageValue(cid, 11032, 1)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You already got your outfit.")
 
Last edited:
Back
Top