Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- quest metinologia_080 begin
- state start begin
- when login or levelup with pc.level >= 80 begin
- set_state(wybors)
- end
- end
- state wybors begin
- when letter begin
- send_letter("Wstęp: Górnictwo I")
- end
- when button or info begin
- say_title("Wstęp: Górnictwo I")
- say("Witaj!")
- say("przynieś bla bla")
- say("Powodzenia!")
- set_state(oddawanie)
- end
- end
- state oddawanie begin
- when letter begin
- send_letter("Górnictwo I")
- local v = find_npc_by_vnum(30028)
- if v != 0 then
- target.vid("__TARGET__", v, "Górnictwo I")
- end
- end
- when info or button begin
- if pc.count_item(24002) == 200 and pc.count_item(24003) == 200 then
- say_title("Górnictwo I:")
- say("Sprawdzę stan ")
- say("")
- pc.removeitem(24002, 200)
- pc.removeitem(24003, 200)
- set_state(powrot)
- elseif pc.count_item(24002) <= 199 and pc.count_item(24003) <= 199 then
- say_title("Górnictwo I:")
- say("Wróć gdy zdobędziesz wszystkie rudy. ")
- say("")
- return
- -- set_state(oddawanie)
- end
- end
- end
- state powrot begin
- when letter begin
- send_letter("Metinologia I Łatwa")
- local v = find_npc_by_vnum(30028)
- if v != 0 then
- target.vid("__TARGET__", v, "Metinologia I Łatwa")
- end
- end
- when info or button begin
- say_title("Metinologia I Łatwa:")
- say("Oto Twoja nagroda: ")
- say("Nagroda 1")
- say("Nagroda 2")
- say("Nagroda 3")
- say("")
- say("")
- say("Gratulacje!!! ")
- pc.give_item2(10,1)
- pc.give_item2(85004,1)
- safe_give_exp(99000000)
- clear_letter()
- --set_quest_state("metinologia_100", "run")
- set_state(__complete)
- end
- end
- state __complete begin
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement