Bienvenido a Open Games Community

Únete ahora para acceder a todas nuestras funciones. Una vez que te registres e inicies sesión, podrás crear temas, responder a hilos existentes, valorar la reputación de otros miembros y muchísimo más. Además, es rápido y totalmente gratuito; ¿a qué esperas?

RevScript Bless Talkaction

Alex

Administrador
Dev
Registrado
1 Sep 2021
Mensajes
2.363
Puntuación de reacción
28.401
Puntos
707
Aqui tienen el talkaction !bless

Pueden modificar:

local totalBlessPrice = 110000

Código:
local bonBless = TalkAction("!bless")

function bonBless.onSay(cid)
    local player = Player(cid)
    local totalBlessPrice = 110000
    local hasBless = true

    for i = 1, 8 do
        if not player:hasBlessing(i) then
            hasBless = false
            break
        end
    end

    if not hasBless then
        if player:removeMoney(totalBlessPrice) then
            for i = 1, 8 do
                player:addBlessing(i, 1)
            end

            player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You have been blessed by all of eight gods!")
            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 already have been blessed!", cid)
    end
end

bonBless:register()
 
shape1
shape2
shape3
shape4
shape5
shape6
Arriba