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

Problem with script - Skull.

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:
doCreatureSetSkullType(cid, SKULL_RED)
It doesn't work. This function don't give a red skull to player, why? :confused:
I tried other way to apply this:
doCreatureSetSkullType(cid, 4)
But this don't work too.
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.
 
Back
Top