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

Blessings

Teshan

New Member
Joined
Nov 10, 2010
Messages
51
Reaction score
0
Today I was surfing the internet and found a type of blessings by levers and decided to put but I can use it whenever you want and do not tell me if I have the blessings or not.

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local money = 50000
if item.actionid == 12346 then
if doPlayerRemoveMoney(cid, money) == TRUE then
for i = 1, 5 do
if getPlayerBlessing(cid) == i then
doPlayerAddBlessings(cid, i)
break
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Tienes las Blessings puestas")
end
end
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "No tienes suficiente dinero para comprar las Blessings")
end
end
return TRUE
end
 
Last edited:
He says that have put on Server bless by switch and want that scripts says you if have Bless or Not like:

You already have been blessed.
You recibe bless for x money.
 
[Spanish]Usa este, que es el mio esta bueno 100%, no se puede usar si eres menor level 70, te da los 5 bless, si tienes los 5 bless no se puede usar de nuevo![/Spanish]

local itemID = 6119
local words = "Bendecido!"
local level = 70
function onUse(cid, item, frompos, item2, topos)

if getPlayerBlessing(cid, 5) == TRUE then
doPlayerSendCancel(cid, "Ya estas Bendecido!")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
return 1
end

if item.itemid == itemID and getPlayerLevel(cid) >= level then
doPlayerAddBlessing(cid, 1)
doPlayerAddBlessing(cid, 2)
doPlayerAddBlessing(cid, 3)
doPlayerAddBlessing(cid, 4)
doPlayerAddBlessing(cid, 5)
doCreatureSay(cid, words, 19)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_HOLYAREA)
doRemoveItem(cid, item.uid, 1)
else
doPlayerSendCancel(cid, "Necesitas ser nivel 70 para ser bendecido!")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
return 1
end
 
Today I was surfing the internet and found a type of blessings by levers and decided to put but I can use it whenever you want and do not tell me if I have the blessings or not.

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local money = 50000
if item.actionid == 12346 then
     if doPlayerRemoveMoney(cid, money) == TRUE then
          for i = 1, 5 do
               if getPlayerBlessing(cid) == i then
                    doPlayerAddBlessings(cid, i)
                    break
               else
                    doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Tienes las Blessings puestas")
               end
          end
     else
          doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "No tienes suficiente dinero para comprar las Blessings")
     end
end
return TRUE
end

see how simple padding makes this look nicer and easier to read?
 

Similar threads

Back
Top