Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

[REOPEN]Improve the Bookday event for stackable books!


DeYaN.

Question

As the title says, here is someone who improve the clasic quest for stackable books ?

If we have the stackable books the player can trade with the soon more piece of books but he receive back a single special books.

 

here is the basic quest ..

 

quest eveniment_carti begin
        state start begin
            when login begin
                if game.get_event_flag("eveniment_carti") == 1 then
                    chat("[EVENIMENT]: Ziua Cartilor - Dute la Soon si vezi despre ce e vorba! ")
                end
            end

            when 20023.chat."Administrare eveniment" with pc.is_gm() begin
                if game.get_event_flag("eveniment_carti") == 1 then
                    say_title("Soon:")
                    say("                                        ")
                    say("Doresti sa inchizi acest eveniment?     ")
                    say("                                        ")
                    local confirma = select ("Da", "Nu acum")
                    if 1 == confirma then
                        notice_all("[EVENIMENT]: Ziua Cartilor - TERMINAT.")
                        game.set_event_flag("eveniment_carti", 0)
                        return
                    end
                end
             
                if game.get_event_flag("eveniment_carti") == 0 then
                    say_title("Soon:")
                    say("                                        ")
                    say("Doresti sa deschizi acest eveniment?    ")
                    say("                                        ")
                    local confirma = select ("Da", "Nu acum")
                    if 1 == confirma then
                        notice_all("[EVENIMENT]: Ziua Cartilor - ACTIVAT.")
                        game.set_event_flag("eveniment_carti", 1)
                        return
                    end
                end
            end
         
            when 20023.chat."Ziua Cartilor" with game.get_event_flag("eveniment_carti") == 1 begin
                say_title("Soon:")
                say("")
                say("E o zi frumoasa!")
        say(" ")
                say("Dami o carte a competentei si o sa primesti in")
                say("schimbul ei cartea mea favorita ... ")
                say("")
                say_reward("Trage cartea ce vrei sa o schimbi")
              say_reward("pe Soon - viermele de carte.")
                return
            end
      
      when 20023.take with item.vnum == 50300 and game.get_event_flag("eveniment_carti") == 1 begin
         local num = number(1,44)
         local tomes = {50401,50402,50403,50404,50405,50416,50417,50418,50419,50420,50431,50432,50433,50434,50435,50446,50447,50448,50449,50450,50461,50462,50463,50464,50465,50466,50476,50477,50478,50479,50480,50481,50496,50495,50494,50493,50492,50491,50506,50507,50508,50509,50510,50511}
         item.remove(50300,1)
         pc.give_item2(tonumber(tomes[num]),1)
      end
   end
end   

 

 

 

if i replace the item.remove(50300,1) with pc.remove_item(50300,1)  the quest remove the first book from inventory not the selected book ...

Edited by DeYaN. (see edit history)
Link to post

2 answers to this question

Recommended Posts

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


  • Current Donation Goals

  • Activity

    1. 11

      Mysql56 to Mysql8

    2. 0

      Does anyone have Kami-Sama's Contact?

    3. 1

      [Trailer][1/3]NerviL2 The return of the Legend

    4. 0

      Won " price" change

    5. 10

      Inferna - The new "metin3"?

    6. 6

      We need you!

    7. 2

      Highlight system bug

  • Recently Browsing

    No registered users viewing this page.

×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.