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

Blessing Script ] Tfs 0.3.6

Dalale

GX
Joined
Jun 13, 2008
Messages
718
Reaction score
2
Location
Sweden
Hello
The script is working fine, im getting all the blessings, the the problem is when somone with blessings is dying his corpse aint falling in the ground. And he aint getting any deathlist, how can this be solved? I hope you understand my problem..
People without blessings = No problems, they are showed in the homepage (when dying) and corpse is showed in the ground)



Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)

-- by ALLAAAAN:d
		if getPlayerStorageValue(cid, 11551) > 0 then
			if getPlayerBlessing(cid, 1) and getPlayerBlessing(cid, 2) and getPlayerBlessing(cid, 3) and getPlayerBlessing(cid, 4) and getPlayerBlessing(cid, 5) then
				doPlayerSendCancel(cid, "You are already blessed!")
				doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
			else
				doPlayerAddBlessing(cid, 1)
				doPlayerAddBlessing(cid, 2)
				doPlayerAddBlessing(cid, 3)
				doPlayerAddBlessing(cid, 4)
				doPlayerAddBlessing(cid, 5)
				doCreatureSay(cid, "Blessed!", TALKTYPE_ORANGE_1)
			end
		else
			doCreatureSay(cid, "Not VIP player!", TALKTYPE_ORANGE_1)
			doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
	end
	return true
end
 
You most likely have something set to doCreatureSetDropLoot somewhere, which prevents almost everything from working properly. >_>
 
Back
Top