Cod: Selectaţi tot
quest eveniment_carti begin
state start begin
when login begin
if game.get_event_flag("eveniment_carti") == 1 then
chat("[EVENIMENT]: Ziua Cartilor Schimba - ACTIVAT.")
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 Schimba - 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 Schimba - 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("Saluare! Dupa cum poate stii astazi este ")
say("ziua Cartilor. Toti jucatorii aduna cartii")
say("pentru a primi in schimbul cartile dorite ")
say("care ii vor ajuta in aventura lor pe ser- ")
say("ver. Asadar, daca doresti sa schimbi o ")
say("puneo pe mine iar eu iti voi schimba ")
say("cartea un premiu in locul iei! ")
say(" ")
return
end
when 20023.take with item.vnum == 50300 and game.get_event_flag("eveniment_carti") == 1 begin
local num = number(1,48)
local tomes = {50401,50402,50403,50404,50405,50406,50416,50417,50418,50419,50420,50421,50431,50432,50433,50434,50435,50436,50446,50447,50448,50449,50450,50451,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)
end
end
end Cod: Selectaţi tot
when 20023.take with item.vnum == 50300, 10 and game.get_event_flag("eveniment_carti") == 1 begin



Vezi ca am impresia ca ai un and in fata la game....


