Hello,
I have a problem... I have made a box quest with a reward...
The script looks like that:
So, when a player opens the box, he should have a storageDone at 60748
So, now I go to shaman outfit in my outfits.xml, and I added the quest="60748" to it
But, when I open the box on any of my chars, I just don't get the outfit
Do you know why this is happening? :S
I tried with some other quest scripts and also didn't work ;/ For a yalahar quest I even added these lines to a box script:
but it didn't work as well ;/
Please help me
I have a problem... I have made a box quest with a reward...
The script looks like that:
PHP:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 58272 then
if getPlayerStorageValue(cid,60748) == -1 then
doPlayerAddItem(cid,5924,1)
setPlayerStorageValue(cid,[B]60748[/B],1)
doPlayerSendTextMessage(cid,22,"You have found a damaged steel helmet.")
else
doPlayerSendTextMessage(cid,22,"It is empty.")
end
end
return true
end
So, when a player opens the box, he should have a storageDone at 60748
So, now I go to shaman outfit in my outfits.xml, and I added the quest="60748" to it
PHP:
<outfit id="15" default="0" quest="60748">
<list gender="0" lookType="158" name="Shaman">
<stats maxHealth="100"/>
</list>
<list gender="1" lookType="154" name="Shaman">
<stats maxHealth="100"/>
</list>
</outfit>
But, when I open the box on any of my chars, I just don't get the outfit
Do you know why this is happening? :S
I tried with some other quest scripts and also didn't work ;/ For a yalahar quest I even added these lines to a box script:
PHP:
doPlayerAddOutfit(cid, outfit_id, 0)
doPlayerAddOutfit(cid, outfit_id, 0)
Please help me
Last edited: