Jump to content
  • 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.
Link to post

2 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  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.



Shoutbox

Shoutbox

Chatroom Rules

 

Join our Discord

A request for help = Shoutbox Ban

Be respectful & Respect the rules

 

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