GarQet
Own3d!
- Joined
- Feb 10, 2009
- Messages
- 1,381
- Solutions
- 14
- Reaction score
- 81
I have problem with my script, all looks ok, but one thing don't works, namely this:

I tried other way to apply this:
In console i don't see not one bug/error which might have something to do with this script.
It's my script:
Please, I need it, help me.
Yours GarQet.
It doesn't work. This function don't give a red skull to player, why?doCreatureSetSkullType(cid, SKULL_RED)
I tried other way to apply this:
But this don't work too.doCreatureSetSkullType(cid, 4)
In console i don't see not one bug/error which might have something to do with this script.
It's my script:
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local storage = getPlayerStorageValue(cid, 9900)
if(storage == 1) then
doPlayerSendTextMessage(cid, 4, "It is empty.")
return true
else
local bp = doPlayerAddItem(cid, 1988, 1)
doAddContainerItem(bp, 2432, 1)
doCreatureSetSkullType(cid, SKULL_RED)
doPlayerSendTextMessage(cid, 4, "You have found Fire Axe and Red Skull, becouse your behavior it was shameful.")
setPlayerStorageValue(cid, 9900, 1)
end
return true
end
Please, I need it, help me.
Yours GarQet.