Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest systemy_runy begin
- state start begin
- when login begin
- cmdchat("runeID "..q.getcurrentquestindex())
- local vnumList = {6990, 6991, 6992, 6993, 6994, 6995, 6996, 6997, 6998}
- for i = 1, table.getn(vnumList) do
- if pc.getqf("runaCzas"..vnumList[i]) <= get_time() then
- pc.setqf("runaCzas"..vnumList[i], 0)
- pc.setqf("runaVnum"..vnumList[i], 0)
- end
- end
- end
- when info or button begin
- local runeList = {
- {6990, 0},
- {6991, 2},
- {6992, 3},
- {6993, 5},
- {6994, 1},
- {6994, 6},
- {6996, 7},
- {6997, 8},
- {6998, 9},
- }
- cmdchat("openRune 0|0|0|2|0|3|0|5|0|4|0|1|0|7|8|9")
- for i = 1, table.getn(runeList) do
- if pc.getqf("runaVnum"..runeList[i][1]) != 0 then
- cmdchat("setRune "..runeList[i][1].."#"..runeList[i][2])
- end
- end
- end
- when 20001.chat."Artefakty - Drop Ulepszaczy" begin
- say_title(mob_name(npc.get_race())..":")
- say("Artefakt #1:")
- say("Artefakt #2:")
- say("Artefakt #3:")
- say("Artefakt #4:")
- say("Artefakt #5:")
- say("Artefakt #6:")
- say("Artefakt #7:")
- say("Artefakt #8:")
- say("Artefakt #9:")
- say("")
- end
- when 6990.use or 6991.use or 6992.use or 6993.use or 6994.use or 6995.use or 6996.use or 6997.use or 6998.use begin
- if get_time() < pc.getqf("runaCzas"..item.get_vnum()) then
- syschat("|cFFD966FF(System Artefaktów):|h|r Nie możesz użyć jeszcze tej runy!")
- return
- end
- local bonus = {
- [6990] = {1, 2500, 0},
- [6991] = {1, 5000, 2},
- [6992] = {17, 15, 3},
- [6993] = {17, 15, 5},
- [6994] = {93, 15, 1},
- [6995] = {72, 7, 6},
- [6996] = {17, 15, 7},
- [6997] = {93, 15, 8},
- [6998] = {72, 7, 9},
- }
- cmdchat("setRune "..item.get_vnum().."#"..bonus[item.get_vnum()][3])
- affect.add_collect(bonus[item.get_vnum()][1], bonus[item.get_vnum()][2], 1)
- pc.setqf("runaCzas"..item.get_vnum(), get_time()+1)
- pc.setqf("runaVnum"..item.get_vnum(), item.get_vnum())
- pc.remove_item(item.get_vnum(), 1)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement