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

Blessings

TaurenLess

New Member
Joined
Jan 2, 2010
Messages
76
Reaction score
1
Location
Brasília / Brasil
Guys, I use the talkaction !bless my OT only loot that is dropping, I tried several! bless and continues dropping loot. Could anyone help me?
Thanks!
 
LUA:
local bless = {1, 2, 3, 4, 5}
local cost = 15000 -- The price of the bless in gold coins
 
function onSay(cid, words, param)
	for i = 1, table.maxn(bless) do
		if(getPlayerBlessing(cid, bless[i])) then
			doPlayerSendCancel(cid, "You have purchased all blessings.")
			return TRUE
		end
	end
 
	if(doPlayerRemoveMoney(cid, cost) == TRUE) then
		for i = 1, table.maxn(bless) do
			doPlayerAddBlessing(cid, bless[i])
		end
		doPlayerSendTextMessage(cid,24, "You alerady have a blessing.")
		doSendMagicEffect(getPlayerPosition(cid), 28)
	else
		doPlayerSendCancel(cid, "You don't have enough money to purchase a bless.")
	end
	return TRUE
end


Credits to me and piotrek1447
 
I think he's using an older verision of TFS that have a bless system that only lowers experience and skill drop (so that script up won't help him), if someone could help me with this also I would be very grateful, so that it also doesn't drop any items when having bless. )
 

Similar threads

Back
Top