WiLDTuRTLE
Member
- Joined
- Feb 26, 2011
- Messages
- 478
- Reaction score
- 5
well... like few months ago, i used to make my blessing works, im using tfs 3.6 does any1 have blessing script working fine?
thats my config setting:
blessings = true
blessingOnlyPremium = true
blessingReductionBase = 20
blessingReductionDecrement = 5
eachBlessReduction = 20
pvpBlessingThreshold = 40
fairFightTimeRange = 60
When using !bless or !aol [somehow it use bless too -.-] when they die they get their character reseted to 1
ps; im not giving that bless the 5 blessings because i have another bless that cost more and gives the 5 bless.
thanks for the support
thats my config setting:
blessings = true
blessingOnlyPremium = true
blessingReductionBase = 20
blessingReductionDecrement = 5
eachBlessReduction = 20
pvpBlessingThreshold = 40
fairFightTimeRange = 60
Code:
local aol_otswe = {
cost = 10000,
buy_text = "You have bought amulet of loss! if you wear it, you will not lose any kind of items expect if you are red skull.",
cancel_text = "Sorry but you dont have enought $$$ to buy that!",
effect = 39
}
local bless_otswe = {
cost = 100000,
cancel_text = "Sorry, but you are already blessed by the gods!",
buy_text = "You have been blessed by the gods!",
effect = CONST_ME_HOLYDAMAGE,
cancel_text_onbuy = "Sorry, but you dont have enought $$$ to buy that!"
}
function onSay(cid, words, param)
if words == "!bless" then
if getPlayerBlessing(cid, 1) or getPlayerBlessing(cid, 2) or getPlayerBlessing(cid, 3) or getPlayerBlessing(cid, 4) or getPlayerBlessing(cid, 5) then
return doPlayerSendCancel(cid,bless_otswe.cancel_text)
end
end
if doPlayerRemoveMoney(cid, bless_otswe.cost) == TRUE then
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doSendMagicEffect(getPlayerPosition(cid), bless_otswe.effect)
doPlayerSendTextMessage(cid,MESSAGE_EVENT_ADVANCE,bless_otswe.buy_text)
else
doPlayerSendCancel(cid, bless_otswe.cancel_text_onbuy)
end
return true
end
When using !bless or !aol [somehow it use bless too -.-] when they die they get their character reseted to 1
ps; im not giving that bless the 5 blessings because i have another bless that cost more and gives the 5 bless.
thanks for the support