Ir para conteúdo

queria uma action de bless , clicar em tal item e ficar com bless full , e que seja infinito ...

Featured Replies

Postado

local config = {

    maxBlessing = 5,

    minLevel = 1,

}


function onUse(cid, item, fromPosition, itemEx, toPosition)

    if not(getPlayerLevel(cid) >= config.minLevel) then

        return doPlayerSendCancel(cid, "You do not have the necessary level.") and false

    end


    for i = 1, config.maxBlessing do

        if not(getPlayerBlessing(cid, i)) then

            doSendMagicEffect(getCreaturePosition(cid), CONST_ME_HOLYAREA)

            doSendAnimatedText(getCreaturePosition(cid), "BLESSED!", COLOR_YELLOW)

            return doPlayerAddBlessing(cid, i) and false

        end


        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)

        return doPlayerSendCancel(cid, "You have already been blessed.") and false

    end


end

  • 3 years later...
  • Respostas 6
  • Visualizações 1.9k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • data\actions\scripts\nomedoarquivo.lua local priceBless = getConfigInfo("blessPrice") function onUse(cid, item, frompos, item2, topos) if getPlayerBlessing(cid, 1) or getPlayerBlessing(ci

  • Tenho uma aqui blessbookuse.lua: local cfg = { bless = { 1, 2, 3, 4, 5 }, level = 8 } function onUse(cid, item, fromPosition, itemEx, toPosition) for i = 1, table.maxn(cfg.bless) do if(

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo