Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest nagroda_boss begin
- state start begin
- function settings()
- return
- {
- [691] =
- {
- ['vnum'] = {70, 170, 270, 370},
- ['count'] = {1, 1, 1, 1},
- ['ilosc_itemow'] = {4},
- }
- }
- end
- when kill with npc.get_race() == 691 begin
- chat("zabiles1")
- local settings = nagroda_boss.settings()
- local przedmioty = settings[npc.get_race()]['ilosc_itemow'][0]
- local item1 = settings[npc.get_race]['vnum'][number(0, przedmioty)]
- -- local numerek1 = number(0, przedmioty)
- -- local numerek2 = number(0, przedmioty)
- -- local numerek3 = number(0, przedmioty)
- -- local nagrody = {settings[npc.get_race()]['vnum'][nagroda1], settings[npc.get_race()]['vnum'][nagroda2], settings[npc.get_race()]['vnum'][nagroda3]}
- -- local ilosc = {settings[npc.get_race()]['count'][nagroda1], settings[npc.get_race()]['count'][nagroda2], settings[npc.get_race()]['count'][nagroda3]}
- -- pc.setqf("boss_nagroda_1", numerek1)
- -- pc.setqf("boss_nagroda_2", numerek2)
- -- pc.setqf("boss_nagroda_3", numerek3)
- -- pc.setqf("boss_nagroda_boss", npc.get_race())
- -- cmdchat("Gui_Wybor_Boss_Nagroda "..nagrody.." "..ilosc)
- -- cmdchat("Gui_Wybor_Boss_Nagroda "..nagrody)
- chat("zabiles2")
- end
- when button or info begin
- local wybor = get_input()
- local settings = nagroda_boss.settings()
- if wybor == "1" then
- chat("Gratulacje, wybrales nagrode!")
- pc.give_item2(settings[pc.getqf("boss_nagroda_boss")]['vnum'][pc.getqf("boss_nagroda_1")],settings[pc.getqf("boss_nagroda_boss")]['count'][pc.getqf("boss_nagroda_1")])
- elseif wybor == "2" then
- chat("Gratulacje, wybrales nagrode!")
- pc.give_item2(settings[pc.getqf("boss_nagroda_boss")]['vnum'][pc.getqf("boss_nagroda_2")],settings[pc.getqf("boss_nagroda_boss")]['count'][pc.getqf("boss_nagroda_2")])
- elseif wybor == "3" then
- chat("Gratulacje, wybrales nagrode!")
- pc.give_item2(settings[pc.getqf("boss_nagroda_boss")]['vnum'][pc.getqf("boss_nagroda_3")],settings[pc.getqf("boss_nagroda_boss")]['count'][pc.getqf("boss_nagroda_3")])
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement