• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction Bless Talkaction!

Xavizus

Panchira Project Member
Joined
Jun 16, 2010
Messages
14
Reaction score
0
Location
Sweden
I already know that there are many bless commands, but, here is mine.
This script buys all 5 bless at the same time, and you can change the cost of all 5, by changing
Lua:
local cost = xxx

Credits to Ninkobi for the base of my script, rest is modifid by me!

Lua:
--|-------------------|--
--|Script by Ninkobi--|--
--|Modified by Xavizus|--
--|-------------------|--

function onSay(cid, words, param)
--Config--
local cost = xxx
--End of Config--
for b = 1,5 do
    if getPlayerBlessing(cid, b) then
        doPlayerSendCancel(cid,'You have already got one or more blessings!')
    else
	if doPlayerRemoveMoney(cid, cost) == TRUE then
		for i = 1,5 do
			doPlayerAddBlessing(cid, i)
		end
	        doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYDAMAGE)
                doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,'You have been blessed by the gods!')
        else
                doPlayerSendCancel(cid, "You need "..cost.." gold coins to get blessed!")
        end
   end    
	return true
end
end
 
Last edited:
and what exactly did you modify about this messed up tabbed script that has been posted over a 100 times?
 
See link to Ninkobi post?
That's what I have edited....

Messed up tabbed? Use notepad++ then it will be less messed up.
100 times? - 6~ posts as I saw

Edit:
Fixed the tabs now, when pasting it in notepad++ the code will get messed up there insted.
 
Back
Top