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

Help me with a command

Rab

Member
Joined
Feb 23, 2009
Messages
468
Reaction score
9
Location
ARGENTINA!
I've gotten Aol and blessings in my ot.

Aol is just normal aol
Blessings are 5 times more expensive than aol, but still having it, you will still loose items. I don't want this to happen, can someone give me the code to please? (I want to say !bless, pay 50k and receive blessings + dont loose any item if dead).
 
I dont know that i good understand you but i have scrpit with bless:

Make file named bless.lua (OTS/data/talkactions/script/bless.lua)
Code:
  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,'Juz masz po co ci wiecej?')
        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, 'Wlasnie blogoslawi cie pieciu bogow')
                else
                        doPlayerSendCancel(cid, "Potrzebujesz 5cc!")
                end
        end
return TRUE
end

To talkaction.xml add:
Code:
    <talkaction words="!bless" event="script" value="bless.lua"/>

And change in config.lua this:
Code:
	blessingOnlyPremium = true
	blessingReductionBase = 30
	blessingReductionDecreament = 5
	eachBlessReduction = 8
 
Back
Top