Jump to content

QUEST- EVENTO MARISCO


AprendizM2
 Share

Recommended Posts

quest item_dia begin
    state start begin
        when login with pc.level >= 30 begin
            send_letter ( "Evento - Ajude o Pescador" )
        end
            when button or info begin             
                        say_title("Olá  ".. pc.get_name() .."")
                        say_reward("Ajude o Pescador a Manter a Ordem")
                        say("O pescador esta limpando os Rios e jogando")
                        say("muitos Mariscos fora, vai que é seu dia de sorte?")
                        say("a cada 30 minutos você pode ganhar 1 marisco")
                        say("mas lembre-se, o tempo não acumula!")
                        say("Boa Sorte!")
                          say_item ( "Marisco" , 27987 , "")

                        
                local premi = select ("Pegar item" , "Sair")
                
                        if premi == 1 then
                
                                if get_time() < pc.getqf("itemdia") then
                                
                                        chat("Precisa esperar 30 minutos , para pegar seu item novamente.")
                                        return
                                        end
                                        
                                pc.give_item2("27987", 1)
                    notice_all("Personagem "..pc.get_name().." acaba de pegar um marisco.")
                                pc.setqf("itemdia", get_time() + 30*60)
                
                        end
                end
        end
end

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...