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

Monster outfit on reward

taha94

New Member
Joined
Jun 12, 2009
Messages
168
Reaction score
0
Location
Sweden
So i was thinking of making a monsteroutfit for some quest's, but i can't seem to get it to work.Once you open the chest you get a message saying that you received Hellfire fighter outfit.. I get the message that i have recieved the outfit but when i try to choose the addon it doesn't apear.. And if i put this in outfits.xml
Code:
<outfit id="26">
		<list gender="0" lookType="243" name="Hellfire fighter"/>
		<list gender="1" lookType="243" name="Hellfire fighter"/>
	</outfit>
Everyone has access to the outfit, wich i don't whant people to have unless they have completed the quest


This is the script
PHP:
local outfitmale = 243
local outfitfemale = 243
local addons = 3
local storage = 1219

function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid, storage) == -1 then
	doPlayerAddOutfit(cid, outfitmale, addons)
	doPlayerAddOutfit(cid, outfitfemale, addons)
		doPlayerSendTextMessage(cid, 21, "You got hellfire fighter outfit!")
		doSendMagicEffect(getCreaturePosition(cid), 28)
	setPlayerStorageValue(cid, storage, 1)
else
	doPlayerSendCancel(cid, "Already you have this addons.")
end
	return true
end

Ill repp++ if you help me
 
Too easy...

Code:
<outfit id="26" premium="yes" quest="1219">
		<list gender="0" lookType="243" name="Hellfire Fighter"/>
		<list gender="1" lookType="243" name="Hellfire Fighter"/>
	</outfit>

The script looks perfectly...

Done! You must edit that tag in outfits.xml and run your server. Test it.
Rep at me.

SOLVED.
 
Last edited:
Back
Top