• 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 problems otxserver 3.1

ratten

http://ragnaroks.servegame.com
Joined
Mar 3, 2009
Messages
13
Reaction score
2
Hey i got a problem with !bless, i put in like 50 different scripts in talkaction and bless.lua and nothing works
the one thing they have in common is they are taking my money but gives no bless.
or actually one script we tried gave bless to players below lvl 31 but above that nothing

I don't think its the bless scripts themself, maybe its the database or something else
would appreciate some help with this, blessings are important

Your, Ratten
 
Solution
I thas to do with some new blessing source edit... use this one that i made insted.

Lua:
function onSay(cid)

    local player = Player(cid)
    local totalBlessPrice = getBlessingsCost(player:getLevel()) * 5 * 0.7
   
    if player:getBlessings() == 5 then
                player:sendCancelMessage("You already have been blessed!", cid)
            elseif player:removeMoney(totalBlessPrice) then
                player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have been blessed by all of eight gods!")
                for b = 1, 5 do
                    player:addBlessing(b, 1)
                end
                player:getPosition():sendMagicEffect(CONST_ME_HOLYAREA)
               
            else...
I thas to do with some new blessing source edit... use this one that i made insted.

Lua:
function onSay(cid)

    local player = Player(cid)
    local totalBlessPrice = getBlessingsCost(player:getLevel()) * 5 * 0.7
   
    if player:getBlessings() == 5 then
                player:sendCancelMessage("You already have been blessed!", cid)
            elseif player:removeMoney(totalBlessPrice) then
                player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have been blessed by all of eight gods!")
                for b = 1, 5 do
                    player:addBlessing(b, 1)
                end
                player:getPosition():sendMagicEffect(CONST_ME_HOLYAREA)
               
            else
                player:sendCancelMessage("You don't have enough money. You need " .. totalBlessPrice .. " to buy bless.", cid)
            end
end

It would/will work like a charm! pls like my answer!
 
Solution
Hey i got a problem with !bless, i put in like 50 different scripts in talkaction and bless.lua and nothing works
the one thing they have in common is they are taking my money but gives no bless.
or actually one script we tried gave bless to players below lvl 31 but above that nothing

I don't think its the bless scripts themself, maybe its the database or something else
would appreciate some help with this, blessings are important

Your, Ratten

Use this script and return result here.

Code:
function onSay(cid)

    local player = Player(cid)
    local totalBlessPrice = getBlessingsCost(player:getLevel()) * 5 * 0.7
    if(not(isPlayerPzLocked(cid))) then
    if player:getBlessings() == 5 then
                player:sendCancelMessage("You already have been blessed!", cid)
            elseif player:removeMoney(totalBlessPrice) then
                player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have been blessed by all of eight gods!")
                for b = 1, 5 do
                    player:addBlessing(b, 1)
                end
                player:getPosition():sendMagicEffect(CONST_ME_HOLYAREA)
              
            else
                player:sendCancelMessage("You don't have enough money. You need " .. totalBlessPrice .. " to buy bless.", cid)
            end
    else
        player:sendCancelMessage("You can't buy bless while you are in a battle.")
    end
end
 
I thas to do with some new blessing source edit... use this one that i made insted.

Lua:
function onSay(cid)

    local player = Player(cid)
    local totalBlessPrice = getBlessingsCost(player:getLevel()) * 5 * 0.7
  
    if player:getBlessings() == 5 then
                player:sendCancelMessage("You already have been blessed!", cid)
            elseif player:removeMoney(totalBlessPrice) then
                player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have been blessed by all of eight gods!")
                for b = 1, 5 do
                    player:addBlessing(b, 1)
                end
                player:getPosition():sendMagicEffect(CONST_ME_HOLYAREA)
              
            else
                player:sendCancelMessage("You don't have enough money. You need " .. totalBlessPrice .. " to buy bless.", cid)
            end
end

It would/will work like a charm! pls like my answer!

Works like a charm indeed! Thank you!!! @Selenia-Global @Falacchi

Btw offtopic* Do anyone of you happend to have a dicer/casino npc that works in 1.3 otx? Tried different ones but doesnt seem to work at all.

Regards
 
Works like a charm indeed! Thank you!!! @Selenia-Global @Falacchi

Btw offtopic* Do anyone of you happend to have a dicer/casino npc that works in 1.3 otx? Tried different ones but doesnt seem to work at all.

Regards
I'm grateful to hear that I helped you
please tick as best answer to others who have the same problem find the solution here.
 
Back
Top