Jump to content

Recommended Posts

Posted

quest ares begin
    state start begin
        when login or levelup with pc.get_level() >= 2 begin
            set_state("information")
        end
    end
    
    state information begin
        when enter begin
            send_letter("Un nuevo regalo")
        end
        
        when letter begin
            local v = find_npc_by_vnum(9015)
            if v != 0 then
                target.vid("gobernador", v, "Gobernador")
            end
            
            send_letter("Un nuevo regalo")
        end
        
        when button or info begin
            say_title(mob_name(9015))
            say("")
            say("Hola,")
            say("el gobernador te esta buscando.")
            say("No le hagas esperar que es una")
            say("persona muy ocupada")
            say("")
        end

        when gobernador.target.click or 9015.chat."Un nuevo regalo" begin
            target.delete("gobernador")
            
            if pc.get_sex() == 0 then
                say("Hola")
                wait ()
                say ("Escoge uno de estos regalos")
            elseif pc.get_sex() == 1 then
                say("Hola")
                wait ()
                say ("Escoge uno de estos regalos")
            end            
            sub_set =  select("anillo 1", "anillo 2", "anillo 3", "anillo 4", "Cancelar")
            if sub_set == 5 then return
            elseif sub_set == 1 then
                pc.give_item2(15005)
            elseif sub_set == 2 then
                pc.give_item2(15006)
            elseif sub_set == 3 then
                pc.give_item2(15007)
            elseif sub_set == 4 then
                pc.give_item2(15008)
            set_state("__complete")    
        end
    end

    state __complete begin
        when enter begin
            clear_letter()
        end
    end
end

 

Hola, me da error al meter la quest y no se por que es, alguien me puede corregir la quest porfavor, la idea es que de de a elegir uno de los anillos.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies to enhance your browsing experience and provide relevant content. By continuing to browse, you agree to our We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. and Terms of Use. For more information on how we protect your data, please check our Privacy Policy.