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
Everyone has access to the outfit, wich i don't whant people to have unless they have completed the quest
This is the script
Ill repp++ if you help me
Code:
<outfit id="26">
<list gender="0" lookType="243" name="Hellfire fighter"/>
<list gender="1" lookType="243" name="Hellfire fighter"/>
</outfit>
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