Ir para conteúdo
Banner com Efeitos

Featured Replies

Resolvido por gabrielzika

Ir para solução
Postado
  • Solução

@leozincorsair

local level = 200

local premio = 2160

local storage = 444445



function onUse(cid, item, frompos, item2, topos)

    if item.uid == 7181 then
     queststatus = getPlayerStorageValue(cid,storage)
     if queststatus == -1 then
    if getPlayerLevel(cid) >= level then
     doPlayerSendTextMessage(cid,25,"Parabens...")
     doPlayerAddItem(cid,premio,1)
        setPlayerStorageValue(cid,storage,1)
     else
     doPlayerSendTextMessage(cid,25,"Voce Precisa de LEVEL "..level..".")
     end
    else
    doPlayerSendTextMessage(cid, 22, "Vázio")
     end
    return 0
    end

    return 1
    end 

 

 

<action uniqueid="7181" event="script" value="quests/NomeDoArquivo.lua"/>

 

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

Postado
  • Autor
10 minutos atrás, gabrielzika disse:

@leozincorsair


local level = 200

local premio = 2160

local storage = 444445



function onUse(cid, item, frompos, item2, topos)

    if item.uid == 7181 then
     queststatus = getPlayerStorageValue(cid,storage)
     if queststatus == -1 then
    if getPlayerLevel(cid) >= level then
     doPlayerSendTextMessage(cid,25,"Parabens...")
     doPlayerAddItem(cid,premio,1)
        setPlayerStorageValue(cid,storage,1)
     else
     doPlayerSendTextMessage(cid,25,"Voce Precisa de LEVEL "..level..".")
     end
    else
    doPlayerSendTextMessage(cid, 22, "Vázio")
     end
    return 0
    end

    return 1
    end 

 

Obrigado !

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