• 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 on TFS

maiwand

New Member
Joined
Nov 21, 2008
Messages
23
Reaction score
0
Hello dear reader,

I got a small or maybe a big question about blessings.

I added bless script on my server but people still keep losing 3 levels.

Could it be possible to make it like this..
If someone has bless he/she wont lose any level.
And someone without bless should lose like 3 levels?

Hopefully someone can help me out with this,

Kindly regards,
Maiwand.
 
you will need to make our own blessing npc, because the tfs blesser dont work. I try all forms to use her, but dont work.

You will need to add this in your npc'blesser.

doPlayerAddBlessing(cid,bless'number) :thumbup:
 
the TFS blessing npc works just fine, LoL
Blessing talkaction, all blseeings=30 cc
talkactions.xml
Code:
	<talkaction words="!blessings" event="script" value="bless.lua"/>
blss.lua
LUA:
  function onSay(cid, words, param, channel)
        if getPlayerBlessing(cid, 5) == FALSE then
                if getPlayerMoney(cid) >= 300000 then
                        for i = 1,5 do
                                doPlayerAddBlessing(cid, i)
                        end
                        doSendMagicEffect(getCreaturePosition(cid), 39)
                        doPlayerRemoveMoney(cid, 300000)
                        doPlayerSendTextMessage(cid, 22, "You have been blessed by the gods!")
                else
                        doPlayerSendCancel(cid, "You don't have enough money.")
                        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
 
Thanks for all the fast reactions!

Dear Djivar I tried doing the bless reduction to 20 but than people got back to level 1 when they died.....
 
No, Eachblessreduction was 8 first in config.lua, people lost 3 levels first. So I changed it to 20 but than they lost all their levels like a lvl 387 got back to level 1. So I changed the blessreduction back to 8..
Now they lose 3 levels and I want them to lose 0 levels if they got bless.

Thanks again for your SUPER fast reaction!
 
Ah bro its working now ;)

Thanks REP for you!!

Edit: Oh damn it isnt working.... in pvp when a player dies he doesnt lose level, but when a monster kills them with bless they get level 1 lol..........

Alot of my players got back to level 1 from lvl 400+ gotta take time to fix that...

Any way to fix it please?
 
Last edited:
Try that then, but on 0.3.5 is it like this:eachBlessReduction = 20 -- player wont lose any lvl when he die with blessings
eachBlessReduction = 19 -- player loose 27% of his lvl when he die

ect so :S
 
blessingOnlyPremium = true
blessingReductionBase = 30
blessingReductionDecreament = 5
eachBlessReduction = 9

On this they lose 1 level each time they die...

I use 0.3.6
 
Back
Top