Ir para conteúdo
Banner com Efeitos

Featured Replies

  • Respostas 15
  • Visualizações 2.3k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Esse tira 8 dias de premium account e remove o red e os frags..   se quiser mudar pra dinheiro é só fazer algumas alterações   local exstorage = 1499 -- quantos dias de premium precisa para tira

  • local exstorage = 1499 -- quantos dias de premium precisa para tirar a red skull local COST = 8000000 -- "yes" ou "no" // para retirar todos os frags local REMOVE_FRAGS = "yes" -- efeto usado quando t

Postado

Esse tira 8 dias de premium account e remove o red e os frags..

 

se quiser mudar pra dinheiro é só fazer algumas alterações

 

local exstorage = 1499
-- quantos dias de premium precisa para tirar a red skull
local COST = 8
-- "yes" ou "no" // para retirar todos os frags
local REMOVE_FRAGS = "yes"
-- efeto usado quando tirar o red
local EFFECT = CONST_ME_YELLOW_RINGS
local config = {
battle = true, -- players deve estar sem battle (true or false)
}

function onSay(cid, words, param, channel)
        if (exhaustion.check(cid, exstorage) == true) then
                doPlayerSendCancel(cid, "You are exhausted")
                return true
        end
         if config.battle == true and getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE then
                doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você não pode tirar red skull com battle.")
                return TRUE
        end
        if getCreatureSkullType(cid) == SKULL_RED then
                local query = db.getResult("SELECT `premdays` FROM `accounts` WHERE `id` = " .. getPlayerAccountId(cid) .. ";")
                local points = query:getDataInt("premdays")
                if points >= COST then
                        local update = db.executeQuery("UPDATE `accounts` SET `premdays`= "..(points - COST).." WHERE `id`= " .. getPlayerAccountId(cid) .. "; ")
                        if (update == true) then
                db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
                        doCreatureSetSkullType(cid,0)
                        doPlayerSendTextMessage(cid, 27, "Sua red skull foi removida!")
                        doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED)
                        doPlayerSetSkullEnd(cid, 0, getPlayerSkullType(cid))
                                doWriteLogFile("./data/logs/removeskull.log", "Success: " .. getCreatureName(cid))
                                doSendMagicEffect(getPlayerPosition(cid), effect)
                                    doRemoveCreature(cid)
                        end
                else
                        doPlayerSendCancel(cid, "Você precisa de " ..COST.. " dias de VIP para remover a red skull.")
                end
        else
                doPlayerSendCancel(cid, "Você não está red skull.")
        end
        exhaustion.set(cid, exstorage, 30)

        if (query ~= nil) then
                query:free()
        end

        return TRUE
end

Att,
Grafit.

Postado
  • Autor

 

Esse tira 8 dias de premium account e remove o red e os frags..

 

se quiser mudar pra dinheiro é só fazer algumas alterações

local exstorage = 1499
-- quantos dias de premium precisa para tirar a red skull
local COST = 8
-- "yes" ou "no" // para retirar todos os frags
local REMOVE_FRAGS = "yes"
-- efeto usado quando tirar o red
local EFFECT = CONST_ME_YELLOW_RINGS
local config = {
battle = true, -- players deve estar sem battle (true or false)
}

function onSay(cid, words, param, channel)
        if (exhaustion.check(cid, exstorage) == true) then
                doPlayerSendCancel(cid, "You are exhausted")
                return true
        end
         if config.battle == true and getCreatureCondition(cid, CONDITION_INFIGHT) == TRUE then
                doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você não pode tirar red skull com battle.")
                return TRUE
        end
        if getCreatureSkullType(cid) == SKULL_RED then
                local query = db.getResult("SELECT `premdays` FROM `accounts` WHERE `id` = " .. getPlayerAccountId(cid) .. ";")
                local points = query:getDataInt("premdays")
                if points >= COST then
                        local update = db.executeQuery("UPDATE `accounts` SET `premdays`= "..(points - COST).." WHERE `id`= " .. getPlayerAccountId(cid) .. "; ")
                        if (update == true) then
                db.executeQuery("UPDATE `killers` SET `unjustified` = 0 WHERE `id` IN (SELECT `kill_id` FROM `player_killers` WHERE `player_id` = " .. getPlayerGUID(cid) .. ")")
                        doCreatureSetSkullType(cid,0)
                        doPlayerSendTextMessage(cid, 27, "Sua red skull foi removida!")
                        doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED)
                        doPlayerSetSkullEnd(cid, 0, getPlayerSkullType(cid))
                                doWriteLogFile("./data/logs/removeskull.log", "Success: " .. getCreatureName(cid))
                                doSendMagicEffect(getPlayerPosition(cid), effect)
                                    doRemoveCreature(cid)
                        end
                else
                        doPlayerSendCancel(cid, "Você precisa de " ..COST.. " dias de VIP para remover a red skull.")
                end
        else
                doPlayerSendCancel(cid, "Você não está red skull.")
        end
        exhaustion.set(cid, exstorage, 30)

        if (query ~= nil) then
                query:free()
        end

        return TRUE
end

A obrigado, REP+ , mais qual seria talkactions,xml?

Sera que alguem consegue modificar para que custe 1kk, nao 8 dias premium.

Alguem pode me ajudar editar o sccript?

Obrigado, REP+ .

Editado por Rodrigo0lg (veja o histórico de edições)

 

                                                           

55f6tc.gif                     

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.

Conteúdo Similar

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo