• 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 No Down Level Help :(

data/talkactions/script
bless.lua
Lua:
local bless = {1, 2, 3, 4, 5}
local cost = 50000 -- Cost in gp.
local maxlevel = 1000

function onSay(cid, words, param)
local lvl = getPlayerLevel(cid)
local new_cost = (lvl * cost) / 500
local target = getPlayerGUID(cid)


for i = 1, table.maxn(bless) do
if(getPlayerBlessing(cid, bless[i])) then
doPlayerSendCancel(cid, "You already have been blessed.")
return TRUE
end
end

if (getPlayerLevel(cid) >= maxlevel) then
if(doPlayerRemoveMoney(cid, new_cost) == TRUE) then
for i = 1, table.maxn(bless) do
doPlayerAddBlessing(cid, bless[i])
doPlayerSendTextMessage(cid,19,"You have successfully all blessing , now do not need aol.")
end
else
doPlayerSendTextMessage(cid,19,"You need to have "..new_cost.."gp to buy blessings.")
end

elseif(getPlayerLevel(cid) < maxlevel) then
if(doPlayerRemoveMoney(cid, cost) == TRUE) then
for i = 1, table.maxn(bless) do
doPlayerAddBlessing(cid, bless[i])
end
doPlayerSendTextMessage(cid,19,"You have successfully been blessed.")
else
doPlayerSendTextMessage(cid,19,"You need to have "..cost.."gp to buy blessings.")
end
end
return FALSE
end

talkactions.xml
Lua:
<talkaction words="!bless" event="script" value="bless.lua" />
 
Ese enfermo tiene mal es el losepercent arriba se lo pusieron, quiere tener un ot y nisiquiera sabe arreglar eso. Y despues se la pasa diciendo que le va a sacar todos los player cuando su ot abriera. Lul!
 
Ese enfermo tiene mal es el losepercent arriba se lo pusieron, quiere tener un ot y nisiquiera sabe arreglar eso. Y despues se la pasa diciendo que le va a sacar todos los player cuando su ot abriera. Lul! No se tu pero asin la gente aprende ke vas de pro pero no sabes ni ke es un script.. odio la gente como tu anormal.
 
Config.lua
Lua:
	blessingOnlyPremium = false
	blessingReductionBase = 30
	blessingReductionDecreament = 5
	eachBlessReduction = 20

Thats make you to not lose any lvl when you got blessings
 
Back
Top