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

dianagirl

Member
Joined
Jul 28, 2009
Messages
429
Reaction score
14
Location
Germany
Hello in my ot i want that if u write !bless that u get all bless,but u dont loss lvls..
With a character druid,or pally you dont loss lvls/skills.
but with a sorc,or knight u loss lvls and skills.. How ic an make that u dont loss
lvls/skills on every vocations ??
here is my bless.lua


PHP:
  function onSay(cid, words, param, channel)
        if getPlayerBlessing(cid, 5) == FALSE then
                if getPlayerMoney(cid) >= 100000 then
                        for i = 1,5 do
                                doPlayerAddBlessing(cid, i)
                        end
                        doSendMagicEffect(getCreaturePosition(cid), 39)
                        doPlayerRemoveMoney(cid, 100000)
						doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYDAMAGE)
                        doPlayerSendTextMessage(cid, 22, "You have been blessed by the gods!")
                else
                        doPlayerSendCancel(cid, "Sorry, but you dont have 10cc")
                        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
                end
        else
                doPlayerSendCancel(cid, "You have already been blessed.")
                doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
        end
return true
end


REPP++ WHO HELP ME :D

thanks ^^
 
configure config.lua and perhaps data/xml/vocations.xml for death penalty. I believe you can choose how affective blessings shall be in config.lua. This has nothing to do with the actual blessing script as long as the script gives all blessings.
 
Back
Top