Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest WytwarzanieMarmurow begin
- state start begin
- when login begin
- cmdchat("TworzenieMarmurow "..q.getcurrentquestindex())
- end
- when button or info begin
- chat("Testowa wiadomość...")
- local Tworzenie = getinput("getinput")
- if Tworzenie == "Wytworz1" then
- if pc.count_item(10) < 1 or pc.count_item(11) < 1 or pc.count_item(12) < 1 then
- syschat("[Informacja] Nie posiadasz przy sobie odpowiednich materiałów aby wytworzyć ten marmur!")
- return
- end
- local szansa = number(1, 100)
- if szansa <= 50 then
- pc.give_item2(70104, 1)
- for d = 0, 300 do
- if item.select_cell(d) then
- if item.get_vnum() == 70104 then
- if item.get_socket(0) == 0 then
- item.set_socket(0, 101)
- syschat("[Informacja] Otrzymałeś marmur jakiś tam...")
- end
- end
- end
- end
- else
- syschat("[Informacja] Niestety nie udało się wytworzyć marmuru!")
- end
- pc.remove_item(10, 1)
- pc.remove_item(11, 1)
- pc.remove_item(12, 1)
- end
- --[[
- if Tworzenie == "Wytworz2" then
- if pc.count_item(ID_KAMIENIA) < 1 or pc.count_item(ID_KAMIENIA) < 1 or pc.count_item(ID_KAMIENIA) < 1 then
- syschat("[Informacja] Nie posiadasz przy sobie odpowiednich materiałów aby wytworzyć ten marmur!")
- return
- end
- local szansa = number(1, 100)
- if szansa <= 60 then
- pc.give_item2(ID_MARMURU2, 1)
- for d = 0, 300 do
- if item.select_cell(d) then
- if item.get_vnum() == ID_MARMURU2 then
- if item.get_socket(0) == 0 then
- item.set_socket(0, ID_MOBA2)
- syschat("[Informacja] Otrzymałeś marmur jakiś tam...")
- end
- end
- end
- end
- else
- end
- pc.remove_item(ID_KAMIENA, 1)
- pc.remove_item(ID_KAMIENA, 1)
- pc.remove_item(ID_KAMIENA, 1)
- end
- if Tworzenie == "Wytworz3" then
- if pc.count_item(ID_KAMIENIA) < 1 or pc.count_item(ID_KAMIENIA) < 1 or pc.count_item(ID_KAMIENIA) < 1 then
- syschat("[Informacja] Nie posiadasz przy sobie odpowiednich materiałów aby wytworzyć ten marmur!")
- return
- end
- local szansa = number(1, 100)
- if szansa <= 80 then
- pc.give_item2(ID_MARMURU3, 1)
- for d = 0, 300 do
- if item.select_cell(d) then
- if item.get_vnum() == ID_MARMURU3 then
- if item.get_socket(0) == 0 then
- item.set_socket(0, ID_MOBA2)
- syschat("[Informacja] Otrzymałeś marmur jakiś tam...")
- end
- end
- end
- end
- else
- syschat("[Informacja] Niestety nie udało się wytworzyć marmuru!")
- end
- pc.remove_item(ID_KAMIENA, 1)
- pc.remove_item(ID_KAMIENA, 1)
- pc.remove_item(ID_KAMIENA, 1)
- end
- ]]--
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement