Jump to content

bookday 3 books al dia


Santos
 Share

Recommended Posts

al poner el book en el sr. soon ello no hace nada 

 

 

quest feiradolivro begin
state start begin
when 20023.take with item.vnum == 50300 == 1 begin
say_title("Uriel")
say("")
say("Tens a certeza que queres trocar este Livro")
say("por um dos meus Manuais?")
say("")
local answ = select("Sim", "Não")
if answ == 1 then
if get_time() < pc.getqf("next_time") then
say("ainda não podes trocar")
 
else
if pc.getqf("max") <= 2 then
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()
pc.give_item2(tonumber(tomes[num]),1)
pc.setqf("max",pc.getqf("max")+1)
elseif pc.getqf("max") == 3 then
pc.setqf("max",pc.getqf("max")+1)
 
pc.setqf("next_time", get_time()+number(24, 24)*60*60)
pc.setqf("max",0)
 
end
end
end
end
end
end
Link to comment
Share on other sites

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.

 Share

  • Recently Browsing   0 members

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