Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest TajemniczeSkrzynie begin
- state start begin
- -- DROP KLUCZY DO EQ
- when kill with not npc.is_pc()begin
- local roznica_poziomow = pc.get_level() - npc.get_level()
- if roznica_poziomow <= 15 then
- if pc.level >= 90 and pc.level < 140 then
- if math.random(800) == 2 then
- pc.give_item2(79011)
- end
- end
- if pc.level >= 140 and pc.level < 190 then
- if math.random(900) == 2 then
- pc.give_item2(79036)
- end
- end
- if pc.level >= 190 then
- if math.random(1000) == 2 then
- pc.give_item2(79037)
- end
- end
- end
- end
- -- DROP KLUCZY NA ZIEMIE
- --when kill with not npc.is_pc()begin
- -- local roznica_poziomow = pc.get_level() - npc.get_level()
- -- if roznica_poziomow <= 15 then
- -- if pc.level >= 90 then
- -- local szansa = math.random(1, 1000)
- -- if szansa <= 5 then
- -- game.drop_item_with_ownership(79011, 1)
- -- end
- -- end
- -- if pc.level >= 130 then
- -- local szansa = math.random(1, 1000)
- -- if szansa <= 5 then
- -- game.drop_item_with_ownership(79036, 1)
- -- end
- -- end
- -- if pc.level >= 180 then
- -- local szansa = math.random(1, 1000)
- -- if szansa <= 5 then
- -- game.drop_item_with_ownership(79037, 1)
- -- end
- -- end
- -- end
- --end
- -- OTWIERANIE SKRZYNI
- when 59239.take begin
- if item.vnum == 79011 or item.vnum == 79060 then
- local szansa = math.random(1,100)
- if szansa <= 70 then
- local id_przedmiotow = {27989, 50821, 50822, 50823, 50825, 50826, 70031, 71015, 71016, 71017, 71114, 79027, 79032, 79021, 18001, 18002, 18003, 18006, 18008, 18009, 18010, 18013, 18014, 18015, 18016, 18017, 18018, 18019, 18020, 18021, 18022, 18023, 18024, 18025, 18026, 18027, 18028, 18030, 18031, 18032, 50827, 50623, 30305}
- local ilosc_przedmiotow = {2, 5, 5, 5, 5, 5, 3, 1, 1, 1, 1, 3, 10, 1, 2, 2, 2, 2, 4, 4, 4, 3, 3, 3, 3, 3, 3, 3, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 3, 3, 1, 3}
- local ilosc = 43
- local przedmiot = math.random(1, ilosc)
- pc.give_item2(id_przedmiotow[przedmiot], ilosc_przedmiotow[przedmiot])
- npc.kill()
- else
- if item.vnum == 79011 then
- chat("Klucz uległ złamaniu podczas próby otwarcia skrzyni..")
- else
- chat("Nie udało sie otworzyc skrzyni.")
- end
- end
- if item.vnum == 79011 then
- pc.remove_item(79011, 1)
- end
- end
- end
- when 59252.take begin
- if item.vnum == 79036 or item.vnum == 79060 then
- local szansa = math.random(1,100)
- if szansa <= 50 then
- local id_przedmiotow = {27989, 50821, 50822, 50823, 50825, 50826, 71015, 71016, 71017, 71107, 71115, 71116, 71117, 71118, 72002, 72005, 72023, 18033, 18034, 18035, 18036, 18037, 18038, 18041, 18042, 18043, 18044, 18045, 18046, 18048, 18049, 28949, 28950, 28957, 28955, 50827, 50624, 79027, 30305, 50115, 79032}
- local ilosc_przedmiotow = {3, 10, 10, 10, 10, 10, 2, 2, 2, 5, 1, 1, 1, 1, 1, 1, 1, 2, 1, 3, 2, 2, 2, 2, 2, 1, 2, 3, 2, 4, 2, 1, 1, 1, 1, 6, 2, 3, 3, 10, 15,}
- local ilosc = 41
- local przedmiot = math.random(1, ilosc)
- pc.give_item2(id_przedmiotow[przedmiot], ilosc_przedmiotow[przedmiot])
- npc.kill()
- else
- if item.vnum == 79036 then
- chat("Klucz uległ złamaniu podczas próby otwarcia skrzyni..")
- else
- chat("Nie udało sie otworzyc skrzyni.")
- end
- end
- if item.vnum == 79036 then
- pc.remove_item(79036, 1)
- end
- end
- end
- when 59253.take begin
- if item.vnum == 79037 or item.vnum == 79060 then
- local szansa = math.random(1,100)
- if szansa <= 30 then
- local id_przedmiotow = {27989, 50821, 50822, 50823, 50825, 50826, 27987, 70005, 70043, 71015, 71016, 71017, 71027, 71028, 71029, 71030, 71107, 71118, 72724, 72728, 28958, 28964, 28969, 28975, 18050, 18051, 18052, 18053, 18054, 18060, 18061, 18062, 29043, 29044, 29049, 29050, 18074, 18075, 18076, 18077, 18078, 18080, 18082, 18083, 18086, 18093, 18094, 18095, 18096, 18101, 18097, 18105, 18104, 18102, 79017, 80019, 50827, 50625, 50626, 79027, 79032, 30305, 50115}
- local ilosc_przedmiotow = {6, 15, 15, 15, 15, 15, 6, 1, 1, 3, 3, 3, 25, 25, 25, 25, 10, 1, 10, 10, 1, 1, 1, 1, 3, 1, 2, 3, 3, 1, 3, 4, 1, 1, 1, 3, 1, 2, 3, 3, 3, 2, 5, 1, 2, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 20, 3, 3, 6, 30, 7, 25}
- local ilosc = 63
- local przedmiot = math.random(1, ilosc)
- pc.give_item2(id_przedmiotow[przedmiot], ilosc_przedmiotow[przedmiot])
- npc.kill()
- else
- if item.vnum == 79037 then
- chat("Klucz uległ złamaniu podczas próby otwarcia skrzyni..")
- else
- chat("Nie udało sie otworzyc skrzyni.")
- end
- end
- if item.vnum == 79037 then
- pc.remove_item(79037, 1)
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement