• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

C++ [OTServ 0.6.4 STABLE] questions this distro doesn't handle bless?

Felipe93

Ghost Member
Joined
Mar 21, 2015
Messages
2,035
Solutions
9
Reaction score
361
Location
Chile
Hello Otland

i wonder if this distro doesn't handle bless system i mean x5 bless no loss backpack etc
i'been struggling to use bless talkactions but i get errors console
and i haven't saw scripts for bless to this distro or even bless config at config.lua
 
You Don't wanna lose your backpack & items..etc when you die yes?
You can just fix auto bless.

Creaturescripts/scripts/login.lua and put this:-
Code:
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
 
You Don't wanna lose your backpack & items..etc when you die yes?
You can just fix auto bless.

Creaturescripts/scripts/login.lua and put this:-
Code:
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
thanks i will test tomorrow, the reason that why im asking this is because at config i didn't see noothing related to blees, talkactions related with bless send errors in exe im trying to take bless system from tfs 0.4 and add to this repository but im stuck with some definitions that i've added but im still suffering issues when i compileieven when i added declarations and definitions
anyway thanks a lot
 
You Don't wanna lose your backpack & items..etc when you die yes?
You can just fix auto bless.

Creaturescripts/scripts/login.lua and put this:-
Code:
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
Bye i don't want that players hace free bless i want them hace to buy it how do i add this?
 
Bye i don't want that players hace free bless i want them hace to buy it how do i add this?

Well
Check ur config.lua first Search any line to find
Code:
-- Blessings
   blessings = true
   blessingOnlyPremium = false
   blessingReductionBase = 30
   blessingReductionDecrement = 5
   eachBlessReduction = 8
   pvpBlessingThreshold = 40
   fairFightTimeRange = 60
Talkaction command you may find it there Talkactions/scripts/bless.lua
Code:
--|-------------------|--
--|Script by Ninkobi--|--
--|Modified by Xavizus|--
--|-------------------|--

function onSay(cid, words, param)
--Config--
local cost = 25000
--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
 
Back
Top