Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --------------------------
- -- BY NIXO AKA GUMIS --
- --------------------------
- quest nixo_kd begin
- state start begin
- function get_input(function_game)
- cmdchat("getinputbegin")
- local input = input(cmdchat(function_game))
- cmdchat("getinputend")
- return input
- end
- when login begin
- cmdchat("KD_QUEST "..q.getcurrentquestindex())
- end
- when button or info begin
- if not pc.can_warp() then
- syschat("Odczekaj 10 sekund oraz zamknij sklep/handel.")
- return
- end
- if pc.count_item(25100) >= 1 then
- info = nixo_kd.get_input("KD_SEND")
- splited = string.split(info, '|')
- if item.select_cell(tonumber(splited[1])) then
- if item.vnum == tonumber(splited[2]) then
- if item.get_type() == 1 or item.get_type() == 2 and item.get_sub_type() == 0 then
- for i = 0, 2 do
- if item.get_socket(i) == tonumber(splited[3]) then
- if item.get_socket(i) > 20000 and item.get_socket(i) != 28960 then
- item.set_socket(i, 1)
- pc.give_item2(tonumber(splited[3]))
- pc.remove_item(30316, 1)
- break
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement