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

Bless system for FREE/PACC

shottyx

Noob is my second name
Joined
Jul 23, 2012
Messages
16
Reaction score
4
Location
Venezuela
Well I had a post on support about how to make Bless for Free/Premium properly works.. but no one answered me.. so I guess I may ask for a Script of Blessing from someone that has free/pacc on his server..
Does someone have a Fully blessing script system working 100% for free/premium? Thanks!
 
Im going to test it, thanks advanced for the help!

PD: It didnt work :/.. People says !blessings, and it takes out your 5cc + plus it says "Youre blessed" but if u die u drop everything :< Im kinda mad at this script cause I've been trying to fix it for days and still :( I can't
 
Last edited:
function onSay(cid, words, param)
if getPlayerBlessing(cid, 1) or getPlayerBlessing(cid, 2) or getPlayerBlessing(cid, 3) or getPlayerBlessing(cid, 4) or getPlayerBlessing(cid, 5) then
doPlayerSendCancel(cid,'You have already got one or more blessings!')
else
if doPlayerRemoveMoney(cid, 50000) == TRUE then
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYDAMAGE)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have been blessed by the gods!')
else
doPlayerSendCancel(cid, "You need 50k to get blessed!")
end
end
return 1
end

Also too I edited the thing that u put on ur 1st post! And still didn't work
 
Delete all blessing from players like normal death, and use mine script:

And please use, a false in config lua, and try again.


Lua:
function onSay(cid, words, param)
if (exhaustion.get (cid, 31102)) then
	doPlayerSendCancel (cid, "You can use the /blessing command one time per 5 seconds!")
return TRUE
else
	exhaustion.set(cid, 31102, 5)
	end
local fail = 0

cost = (getPlayerLevel(cid) * 50)
cost2 = (getPlayerLevel(cid) * 50) * 5

	for i = 1, 5 do
		if getPlayerBlessing(cid, i) then
			fail = fail + 1
		else
			if doPlayerRemoveMoney(cid, cost) == TRUE then
				doPlayerAddBlessing(cid, i)
				if i == 5 and not(fail == 5) then
				doCreatureSay(cid, "You have bought all blessings for "..cost2.." !", TALKTYPE_ORANGE_1)
				doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED)
				end
			else
				doCreatureSay(cid, "You do not have enough money to buy all the blessings!", TALKTYPE_ORANGE_1)
				doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
				break
			end
		end
	end
	if fail == 5 then
		doPlayerSendCancel(cid, "You already have all the blessings!")
	end
return TRUE
end
 
Back
Top