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

Need Script Of !bless

Olddies

Classicot.com
Joined
Nov 21, 2009
Messages
1,291
Solutions
12
Reaction score
423
Location
Dominican Republic 🇩🇴
hello i need one script and its !bless for avesta 7.6 if someone can help me please ;) i'll repp+ who post me here the script
 
Last edited:
PHP:
<talkaction access="0" words="!bless" script="bless.lua"/>

LUA:
local bless = {1, 2, 3, 4, 5}
local cost = 1000000

function onSay(cid, words, param)
    for i = 1, table.maxn(bless) do
        if(getPlayerBlessing(cid, bless[i])) then
            doPlayerSendCancel(cid, "You have already all blessings.")
            return TRUE
        end
    end
    
    if(doPlayerRemoveMoney(cid, cost) == TRUE) then
        for i = 1, table.maxn(bless) do
            doPlayerAddBlessing(cid, bless[i])
        end
        doCreatureSay(cid, "You bought bless!" ,19)
        doSendMagicEffect(getPlayerPosition(cid), 49)
    else
        doPlayerSendCancel(cid, "You don\'t have enough money.")
    end
    return TRUE
end
 
Well Its Dont Work :/ Look what my console shows when i say !bless in game with character... if someone understand please

Lua Script Error: [Talkaction Interface] data/talkaction/scripts/bless.lua:onSay

Data/talkactions/scripts/bless.lua:6: atempt to call global 'getPlayerBlessing'<a nil value>
stack traceback:
data/talkactions/scripts/bless.lua:6: in function <data/talkactions/scripts/bless.lua:4>
 
Code:
  local bless = {1, 2, 3, 4, 5}
local cost = 50000
function onSay(cid, words, param)
    for i = 1, table.maxn(bless) do
        if(getPlayerBlessing(cid, bless[i])) then
            doPlayerSendCancel(cid, "You have already all blessings.")
            return TRUE
        end
    end
   
    if(doPlayerRemoveMoney(cid, cost) == TRUE) then
        for i = 1, table.maxn(bless) do
            doPlayerAddBlessing(cid, bless[i])
        end
        doCreatureSay(cid, "You are now blessed by the Five Gods!" ,19)
        doSendMagicEffect(getPlayerPosition(cid), 49)
    else
        doPlayerSendCancel(cid, "You don\'t have enough money.")
    end
    return TRUE
end

Cant remember who made it.. so credits are unknown <for now> :P
 
Still Doesnt Work :/ dunno what is the problem.. :o see what show in console when i say !bless in game

Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/bless.lua:onSay

data/talkactions/scripts/bless.lua:5: attempt to call global 'getPlayerBlessing'
(a nil value)
stack traceback:
data/talkactions/scripts/bless.lua:5: in function <data/talkactions/scri
pts/bless.lua:3>
 
Well I Just Says I Need Some Help With !bless Im Trying to do it because i need realy... the console show one error when i try to buy blessings with com !bless if someone understand this please help me i will rep+ the one who help me!!!

Lua Script Error: [TalkAction Interface]
data/talkactions/scripts/bless.lua:onSay

data/talkactions/scripts/bless.lua:5: attempt to call global 'getPlayerBlessing'
(a nil value)
stack traceback:
data/talkactions/scripts/bless.lua:5: in function <data/talkactions/scri
pts/bless.lua:3>
 
Back
Top