Jump to content

[REOPEN]Improve the Bookday event for stackable books!


Recommended Posts

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.
  • Good 1
Link to comment
Share on other sites

  • 2 years later...
  • 4 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.