Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest event_xmas_help1 begin
- --http://wklej.to/xJy9C
- state start begin
- when 20254.chat."Świąteczna Kraina" with game.get_event_flag("event_xmas_help") == 1 and pc.get_map_index() != 11 begin
- say_title("Święty Elf!")
- say("")
- say("Świąteczna Kraina jest niedostępna.")
- say("Mogę Cię zabrać na Świąteczną Krainę.")
- say("")
- local s = select("Chcę przejść ", "Nie dzięki")
- if s == 2 then
- return
- elseif s == 1 then
- pc.warp(1744100, 68200)
- end
- end
- when login with pc.get_map_index() == 11 begin
- cmdchat("xmas_snow1 1")
- --cmdchat("sound isound/xmas_great.wav")
- end
- when 120268.use begin
- pc.mount(21614,60*60*60)
- end
- when 120267.use begin
- pc.mount(20249,60*60*60)
- end
- when kill with not npc.is_pc() and game.get_event_flag("event_xmas_help") == 1 begin
- local szansa = number(1, 350)
- if pc.get_premium_remain_sec(PREMIUM_EXP) > 0 then
- local szansa = number(1, 190)
- end
- local x = pc.get_local_x() + number(1,5)
- local y = pc.get_local_y() + number(1,5)
- if szansa == 1 then
- pc.aggregate_monster()
- mob.spawn(7039, x, y, 0, 0, 1)
- mob.spawn(7036, x, y, 0, 0, 1)
- mob.spawn(116, x, y, 0, 0, 1)
- chat("Świąteczny prezent!")
- end
- end
- when 116.kill with game.get_event_flag("event_xmas_help") == 1 begin
- pc.give_item2(50037, 8)
- end
- when 681.kill or 849.kill with game.get_event_flag("event_xmas_help") == 1 begin
- if pc.get_level() < 201 then
- local los_item = {
- {120119,3},
- {70011,30},
- {30192,30},
- {70018,30},
- {70029,30},
- {30193,30},
- {25041,10},
- {30059,20},
- {71018,5},
- {30203,30},
- {70031,20},
- {120298,2},
- {120297,3},
- {71052,2},
- {50011,30},
- {50037,20},
- {120154,20},
- {50080,1},
- {120131,2},
- {120127,5},
- {71140,1},
- {85001,1},
- {71139,5},
- {71138,1},
- {120352,1},
- {71136,2}
- }
- rand1 = math.random(1,table.getn(los_item))
- rand2 = math.random(1,table.getn(los_item))
- rand3 = math.random(1,table.getn(los_item))
- rand4 = math.random(1,table.getn(los_item))
- pc.give_item2(los_item[rand1][1],los_item[rand1][2])
- pc.give_item2(los_item[rand2][1],los_item[rand2][2])
- pc.give_item2(los_item[rand3][1],los_item[rand3][2])
- pc.give_item2(los_item[rand4][1],los_item[rand4][2])
- local x1 = number(1,100)
- if x1 < 2 then
- pc.give_item2(53008,1)
- end
- local x1 = number(1,100)
- if x1 < 2 then
- pc.give_item2(53009,1)
- end
- local x1 = number(1,100)
- if x1 < 2 then
- pc.give_item2(71156,1)
- end
- local x1 = number(1,100)
- if x1 < 2 then
- pc.give_item2(71155,1)
- end
- local x1 = number(1,100)
- if x1 < 5 then
- pc.give_item2(55238,1)
- end
- local x1 = number(1,100)
- if x1 < 5 then
- pc.give_item2(55239,1)
- end
- local x1 = number(1,100)
- if x1 < 5 then
- pc.give_item2(55240,1)
- end
- local x1 = number(1,100)
- if x1 < 5 then
- pc.give_item2(55241,1)
- end
- local x1 = number(1,100)
- if x1 < 5 then
- pc.give_item2(55242,1)
- end
- local x1 = number(1,100)
- if x1 < 5 then
- pc.give_item2(55243,1)
- end
- local x1 = number(1,100)
- if x1 < 5 then
- pc.give_item2(55244,1)
- end
- local x1 = number(1,100)
- if x1 < 5 then
- pc.give_item2(85039,1)
- end
- local x1 = number(1,100)
- if x1 < 5 then
- pc.give_item2(41324,1)
- end
- local x1 = number(1,100)
- if x1 < 5 then
- pc.give_item2(41325,1)
- end
- end
- end
- when 684.kill with game.get_event_flag("event_xmas_help") == 1 begin
- local los_item = {
- {120165,1},
- {120166,1},
- {120167,1},
- {120164,1},
- {120154,15},
- {50037,20},
- {50011,20},
- {120155,3},
- {71136,3},
- {71051,1},
- {71052,2},
- {71018,5},
- {71019,8},
- {71020,5},
- {120127,5},
- {120297,3},
- {120299,2},
- {71151,1},
- {120298,3},
- {85000,5},
- {50010,5},
- {120195,1},
- {120337,1},
- {120339,1},
- {120338,1},
- {120342,1},
- {120341,5},
- {120343,1}
- }
- rand1 = math.random(1,table.getn(los_item))
- rand2 = math.random(1,table.getn(los_item))
- rand3 = math.random(1,table.getn(los_item))
- rand4 = math.random(1,table.getn(los_item))
- game.drop_item_with_ownership(los_item[rand1][1],los_item[rand1][2])
- game.drop_item_with_ownership(los_item[rand2][1],los_item[rand2][2])
- game.drop_item_with_ownership(los_item[rand3][1],los_item[rand3][2])
- game.drop_item_with_ownership(los_item[rand4][1],los_item[rand4][2])
- local x1 = number(1,100)
- if x1 < 2 then
- pc.give_item2(53008,1)
- end
- local x1 = number(1,100)
- if x1 < 2 then
- pc.give_item2(53009,1)
- end
- local x1 = number(1,100)
- if x1 < 2 then
- pc.give_item2(71156,1)
- end
- local x1 = number(1,100)
- if x1 < 2 then
- pc.give_item2(71155,1)
- end
- local x1 = number(1,100)
- if x1 < 5 then
- pc.give_item2(55238,1)
- end
- local x1 = number(1,100)
- if x1 < 5 then
- pc.give_item2(55239,1)
- end
- local x1 = number(1,100)
- if x1 < 5 then
- pc.give_item2(55240,1)
- end
- local x1 = number(1,100)
- if x1 < 5 then
- pc.give_item2(55241,1)
- end
- local x1 = number(1,100)
- if x1 < 5 then
- pc.give_item2(55242,1)
- end
- local x1 = number(1,100)
- if x1 < 5 then
- pc.give_item2(55243,1)
- end
- local x1 = number(1,100)
- if x1 < 5 then
- pc.give_item2(55244,1)
- end
- local x1 = number(1,100)
- if x1 < 5 then
- pc.give_item2(85039,1)
- end
- local x1 = number(1,100)
- if x1 < 5 then
- pc.give_item2(41324,1)
- end
- local x1 = number(1,100)
- if x1 < 5 then
- pc.give_item2(41325,1)
- end
- end
- when 685.kill or 686.kill with game.get_event_flag("event_xmas_help") == 1 begin
- local los_item = {
- {71052,1},
- {120297,1},
- {120298,1},
- {70029,5},
- {70029,10},
- {30193,5},
- {30193,10},
- {70011,5},
- {70011,10},
- {120337,1},
- {71035,1},
- {30141,1},
- {85000,1},
- {30198,5},
- {50037,5},
- {50514,1},
- {70031,10},
- {70030,5},
- {70030,10},
- {30203,5},
- {30203,10},
- {120106,2},
- {120107,2},
- {120108,2},
- {120109,2},
- {120110,2},
- {70019,2},
- {71107,1}
- }
- rand1 = math.random(1,table.getn(los_item))
- rand2 = math.random(1,table.getn(los_item))
- rand3 = math.random(1,table.getn(los_item))
- rand4 = math.random(1,table.getn(los_item))
- game.drop_item_with_ownership(los_item[rand1][1],los_item[rand1][2])
- game.drop_item_with_ownership(los_item[rand2][1],los_item[rand2][2])
- game.drop_item_with_ownership(los_item[rand3][1],los_item[rand3][2])
- game.drop_item_with_ownership(los_item[rand4][1],los_item[rand4][2])
- end
- when 677.kill or 678.kill or 679.kill or 680.kill or 682.kill or 683.kill begin
- if game.get_event_flag("event_xmas_help") == 1 then
- if number(1,100) < 10 then
- game.drop_item_with_ownership(50010,1)
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement