MA

[Resolvido] Script bota da mewtwo

Por MaestroOn, 17 de jan. de 2020 em Resolvidos

22
7k
17 de janeiro de 2020 às 12:27

em fuck altere por esse:

Spoiler

function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid,storage) == -1 then
    velocidade = 100 -- velocidade que vai ganhar
    doChangeSpeed(cid, velocidade)
    setPlayerStorageValue(cid, 55554, 1)
    doRemoveItem(item.uid, 1)
    elseif getPlayerStorageValue(cid, 55554) == 1 then
        doPlayerSendCancel(cid, 'Voce ja usou esse item!')
    end
    return true
end

 

agora vamos para parte do login:

 

Spoiler

estava assim:

Spoiler

function onLogin(cid)

    if getPlayerLevel(cid) >= 1 and getPlayerLevel(cid) <= 10 then   --alterado v1.8
       doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)
    else     
       doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, (getPlayerLevel(cid) >= 200 and 100 or math.floor(getPlayerLevel(cid)/2)) )
    end

deixe assim:

Spoiler

function onLogin(cid)
    if getPlayerStorageValue(cid, 55554) == 1 then
       doPlayerSendCancel(cid, "Voce tem um item raro ativado na sua conta")

       doChangeSpeed(cid, 100)
    else
    if getPlayerLevel(cid) >= 1 and getPlayerLevel(cid) <= 10 then   --alterado v1.8
       doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)
    else     
       doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, (getPlayerLevel(cid) >= 200 and 100 or math.floor(getPlayerLevel(cid)/2)) )
    end

 

teste agora: desligando e ligando servidor e usando item novamente

Editado Janeiro 17 por Poke X Ice

MaestroOnM
17 de janeiro de 2020 às 12:42
13 minutos atrás, Poke X Ice disse:

em fuck altere por esse:

  Ocultar conteúdo

function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid,storage) == -1 then
    velocidade = 100 -- velocidade que vai ganhar
    doChangeSpeed(cid, velocidade)
    setPlayerStorageValue(cid, 55554, 1)
    doRemoveItem(item.uid, 1)
    elseif getPlayerStorageValue(cid, 55554) == 1 then
        doPlayerSendCancel(cid, 'Voce ja usou esse item!')
    end
    return true
end

 

agora vamos para parte do login:

 

  Ocultar conteúdo

estava assim:

  Ocultar conteúdo

function onLogin(cid)

    if getPlayerLevel(cid) >= 1 and getPlayerLevel(cid) <= 10 then   --alterado v1.8
       doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)
    else     
       doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, (getPlayerLevel(cid) >= 200 and 100 or math.floor(getPlayerLevel(cid)/2)) )
    end

deixe assim:

  Ocultar conteúdo

function onLogin(cid)
    if getPlayerStorageValue(cid, 55554) == 1 then
       doPlayerSendCancel(cid, "Voce tem um item raro ativado na sua conta")

       doChangeSpeed(cid, 100)
    else
    if getPlayerLevel(cid) >= 1 and getPlayerLevel(cid) <= 10 then   --alterado v1.8
       doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)
    else     
       doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, (getPlayerLevel(cid) >= 200 and 100 or math.floor(getPlayerLevel(cid)/2)) )
    end

 

teste agora: desligando e ligando servidor e usando item novamente

Como sempre voce fazendo um trabalho chique Brigadão deu certo

17 de janeiro de 2020 às 12:47
4 minutos atrás, MaestroOn disse:

Como sempre voce fazendo um trabalho chique Brigadão deu certo

de nada :)

MaestroOnM
17 de janeiro de 2020 às 12:48
1 minuto atrás, Poke X Ice disse:

de nada :)

pc aqui lago kkk tentei achar onde tava o citado mas msm assim coloquei voce como melhor resposta :)

script top parabens

Editado Janeiro 17 por MaestroOn

17 de janeiro de 2020 às 12:51
2 minutos atrás, MaestroOn disse:

pc aqui lago kkk tentei achar onde tava o citado mas msm assim coloquei voce como melhor resposta :)

script top parabens

valeu :) 

mister17M
17 de janeiro de 2020 às 13:09
40 minutos atrás, Poke X Ice disse:

em fuck altere por esse:

  Mostrar conteúdo oculto

function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid,storage) == -1 then
    velocidade = 100 -- velocidade que vai ganhar
    doChangeSpeed(cid, velocidade)
    setPlayerStorageValue(cid, 55554, 1)
    doRemoveItem(item.uid, 1)
    elseif getPlayerStorageValue(cid, 55554) == 1 then
        doPlayerSendCancel(cid, 'Voce ja usou esse item!')
    end
    return true
end

 

agora vamos para parte do login:

 

  Ocultar conteúdo

estava assim:

  Mostrar conteúdo oculto

function onLogin(cid)

    if getPlayerLevel(cid) >= 1 and getPlayerLevel(cid) <= 10 then   --alterado v1.8
       doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)
    else     
       doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, (getPlayerLevel(cid) >= 200 and 100 or math.floor(getPlayerLevel(cid)/2)) )
    end

deixe assim:

  Mostrar conteúdo oculto

function onLogin(cid)
    if getPlayerStorageValue(cid, 55554) == 1 then
       doPlayerSendCancel(cid, "Voce tem um item raro ativado na sua conta")

       doChangeSpeed(cid, 100)
    else
    if getPlayerLevel(cid) >= 1 and getPlayerLevel(cid) <= 10 then   --alterado v1.8
       doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, 0)
    else     
       doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, (getPlayerLevel(cid) >= 200 and 100 or math.floor(getPlayerLevel(cid)/2)) )
    end

 

teste agora: desligando e ligando servidor e usando item novamente

Belo trabalho parabens

MarkowiiczM
17 de janeiro de 2020 às 14:34
O pedido neste tópico de foi atendido e/ou o autor do tópico resolveu sua duvida. Este tópico está fechado e foi movido para Pedidos - Resolvidos. Se você tiver outros pedidos, crie um novo tópico.