Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Pytanie] eliiksir poszukiwacza


Rekomendowane odpowiedzi

Opublikowano

Nie wiem czy wiecie, ale to standardowo w questach biologa jest <3

 

----------------------------------------------------
--COLLECT QUEST_lv30
--METIN2 Collecting Quest
----------------------------------------------------
quest collect_quest_lv30  begin
        state start begin
                when login or levelup with pc.level >= 30 and pc.level <= 90 begin
                        set_state(information)
                end
        end
        state information begin
                when letter begin
                        local v = find_npc_by_vnum(20084)
                        if v != 0 then
                                target.vid("__TARGET__", v, "Biologist Chaegirab")
                        end
                        send_letter("The pleasure of the Biologist")
                end
                when button or info begin
                        say_title("The pleasure of the Biologist")
                        say("")
                        say("Biologist Chaegirab, the apprentice of Uriel,")
                        say("looks for your help urgently.")
                        say("Hurry up and help him.")
                        say("")
                end
                when __TARGET__.target.click or
                        20084.chat."I need your help." begin
                        target.delete("__TARGET__")
                        say_title("Biologist Chaegirab:")
                        ---                                                   l
                        say("")
                        say("Oh!!! Please, help me...")
                        say("I collect informations about monsters in our")
						say("realm I cannot handle it on my own..")
                        say("Actually I should collect the information ")
                        say("on my own...")
                        say("I think you can imagine I have problems with it")
						say("as a biologist. Please help me. Of course you")
						say("will receive a good reward for helping me.")
                        say("")
                        wait()
                        say_title("Biologist Chaegirab:")
                        say("")
                        say("I make examinations on the Orcs in the Dragon")
						say("Valley. The Orc Tooth is able to grind Iron.")
                        say("ThatˇŻs why they seem very interesting to me.")
                        say("Probably we are related with the Orcs..")
                        say("The Orc Tooth must be a key in the evolution.")
                        say("")
                        wait()
                        say_title("Biologist Chaegirab")
                        say("")
                        say("Could you bring me a few Orc Tooth?")
                        say("But I need special Tooth. Bring me an Orc Tooth,")
                        say("but only one at a time, so I can examine them.")
                        say("Good Luck!")
                        say("")
                        say("")
                        set_state(go_to_disciple)
                        pc.setqf("duration",0)
                        pc.setqf("collect_count",0)
                        pc.setqf("drink_drug",0)
                end
        end
        state go_to_disciple begin
                when letter begin
                        send_letter("The examination of the Biologist")
                end
                when button or info begin
                        say_title("The Orc Tooth of the Dragon Valley.")
                        ---                                                   l
                        say("")
                        say("The Biologist Chaegirab needs Orc Tooth from")
						say("the Orcs in the Dragon Valley for his examination.")
                        say("Always bring him one at a time, so he has")
                        say("time to examine them.")
                        say("")
                        say("")
                        say_item_vnum(30006)
                        say_reward("You have found".." "..pc.getqf("collect_count").."Orc Tooth already")
                        say("")
                end
                when 71035.use begin
                        if get_time() < pc.getqf("duration") then
                                say("")
                                say("You cannot use the Quest Potion yet.")
                                say("")
                                return
                        end
                        if pc.getqf("drink_drug")==1 then
                                say("")
                                say("You already used it.")
                                say("")
                                return
                        end
                        if pc.count_item(30006)==0 then
                                say_title("Biologist Chaegirab:")
                                say("")
                                say("While you are organizing the Orc Tooth")
                                say("you can use the Quest Potion.")
                                say("")
                                return
                        end
                        item.remove()
                        pc.setqf("drink_drug",1)
                end

		when 20084.chat."GM: collect_quest_lv30.skip_delay" with pc.count_item(30006) >0 and pc.is_gm() and get_time() <= pc.getqf("duration") begin
			say(mob_name(20084))
			say("You are GM, OK")
			pc.setqf("duration", get_time()-1)
			return
		end
            when 20084.chat."The Tooth" with pc.count_item(30006) >0   begin
                        if get_time() > pc.getqf("duration") then
							if  pc.count_item(30006) >0 then
                                say_title("Biologist Chaegirab")
                                ---                                                   l
                                say("")
                                say("Oh!! You brought me an Orc Tooth...")
                                say("I have to test it first...")
                                say("That needs time..")
                                say("")
								pc.remove_item("30006",1)
								if  is_test_server()  then 
								pc.setqf("duration",get_time()+2) 
								else
								pc.setqf("duration",get_time()+60*60*22) -----------------------------------22˝Ă°Ł
	end
                                wait()
                                local pass_percent
                                if pc.getqf("drink_drug")==0 then
                                        pass_percent=60
                                else
                                        pass_percent=90
                                end
                                local s= number(1,100)
                                if s<= pass_percent  then
                                   if pc.getqf("collect_count")< 9 then
                                                local index =pc.getqf("collect_count")+1
                                                pc.setqf("collect_count",index)
                                                say_title("Biologist Chaegirab")
                                                say("")
                                                say("Ohhh!! You are the best...")
                                                say("Please bring me".." more"..10-pc.getqf("collect_count").. " more")
                                                say("I need more to finish my examinations.")
                                                say("I wish you good luck.")
                                                say("")
                                                say("")
                                                pc.setqf("drink_drug",0)
                                                return
                                        end
                                        say_title("Biologist Chaegirab:")
                                        say("")
                                        say("You have collected all the Orc Tooth!!")
                                        say("But now I need another special stone")
                                        say("The Orc's Soul Stone . Can you")
                                        say("find this stone too?")
                                        say("You can get it from the Orcs.")
                                        say("")
                                        pc.setqf("collect_count",0)
                                        pc.setqf("drink_drug",0)
                                        pc.setqf("duration",0)
                                        set_state(key_item)
                                        return
                                else
                                say_title("Biologist Chaegirab:")
                                say("Hum....unfortunately it broke...")
                                say("I am sorry. I cannot use it..")
                                say("Please bring me another one.")
                                say("")
                                pc.setqf("drink_drug",0)
                                return
                                end
				else
                    say_title("Biologist Chaegirab:")
					say("You don't have a"..item_name(30006).."!")
					return
				end
            else
                  say_title("Biologist Chaegirab:")
		  ---                                                   l
		  say("")
		  say("I am terribly sorry....")
		  say("I have not analysed the Orc Tooth, that you gave me,")
		  say("yet ... I am very sorry....Can you give me")
		  say("another one later?")
		  say("")
                  say("")
                  say("")
                  return
                end
        end
end
        state key_item begin
                when letter begin
                        send_letter("The research of the Biologist")
                        if pc.count_item(30220)>0 then
                                local v = find_npc_by_vnum(20084)
                                if v != 0 then
                                        target.vid("__TARGET__", v, "")
                                end
                        end
                end
                when button or info begin
                        if pc.count_item(30220) >0 then
                                say_title("The Special Stone")
                                say("")
                                ---                                                   l
                                say_reward("Finally. You have found the OrcˇŻs Soul Stone.")
                                say_reward("Bring it to the Biologist Chargirab.")
                                say_reward("He awaits you.")
                                say("")
                                return
                        end
                        say_title("The Special Stone")
                        say("")
                        ---                                                   l
                        say("For his examinations, the Biologist Chaegirab")
                        say("needs the Orc's Soul Stone.")
                        say("You have organized the 10 Orc Tooth.")
                        say_item_vnum(30220)
                        say("Give the Biologist Chaegirab the stone you found.")
						say("You can get them from"..mob_name(635).."and")
						say(""..mob_name(636).."and"..mob_name(637)..".")
                        say("")
                end
                when 635.kill or
                         636.kill or
                         637.kill  begin
                        local s = number(1, 500)
                        if s == 1 and pc.count_item(30220)==0 then
                                pc.give_item2(30220, 1)
                                send_letter("You found the Orc's Soul Stone")
                        end
                end
                when __TARGET__.target.click  or
                        20084.chat."I got the Orc's Soul Stone" with pc.count_item(30220) > 0  begin
                        target.delete("__TARGET__")
						if pc.count_item(30220) > 0 then 
                        say_title("Biologist Chaegirab")
			---                                                   l
                        say("")
						say("Ohh!!! I thank you..")
						say("As reward I will raise your inner strength ..")
						say("ThatˇŻs a secret recipe, which contain the")
						say("information about strength...")
						say("Give it to Baek-Go. He will produce Strength")
						say("Potion. Have fun!")
                        say("With your help I learned a lot about the Orcs")
                        say("")
                        say("")
                        pc.remove_item(30220,1)
                        set_state(__reward)
			else
                say_title("Biologist Chaegirab")
				say("You don't have a"..item_name(30220).."!")
				say("")
				return
                end
        end

		end
        state __reward begin
                when letter begin
                        send_letter("The reward of the Biologist")
                        local v = find_npc_by_vnum(20018)
                        if v != 0 then
                                target.vid("__TARGET__", v, "Baek-Go")
                        end
                end
                when button or info begin
                        say_title("The reward of the Biologist")
                        ---                                                   l
                        say("")
                        say("As reward for the Orc Tooth and Orc`s")
                        say("Soul Stone, Biologist Chaegirab gave you a")
                        say("recipe for a secret potion.")
                        say("Please give this to Baek-Go, he will create the")
			say("potion.")
                        say("")
                end
                when __TARGET__.target.click  or
                        20018.chat."The Secret Recipe"  begin
                        target.delete("__TARGET__")
                        say_title("Baek-Go:")
                        say("")
                        say("Let me have a look..")
                        say("Is that the recipe, Chaegirap gave you??")
                        say("Hmm, plus Moving speed.")
                        say("Oh! Here you are, a Red Ebony box!!")
                        say("Here you are.")
                        say("")
			-----------                                                   l
						say_reward("As reward for Biologist Chaegiraps pleasure you")
						say_reward("received a +10 on movingspeed. ")
						say_reward("These strength is not temporary, but eternally.")
						affect.add_collect(apply.MOV_SPEED, 10, 60*60*24*365*60) -- 60Years
						pc.give_item2(50109)
                        clear_letter()
                        set_quest_state("collect_quest_lv40", "run")
                        set_state(__complete)
                end
        end
        state __giveup__ begin
                when 20084.chat."Another Trial." begin
                        say_title("Biologist Chaegirab:")
                        say("")
                        say("Can you try it again?")
                        say("Hmm, very good")
                        say("It attracts me very well, but")
                        say("please try it again.")
                        say("Ok, see you later.")
                        set_state(start)
             end
         end
        state __complete begin
        end
end

Quest z sf Schittset'a , id przedmiotu : 71035 <3

footer_logo.png

Opublikowano
when 71035.use begin

if get_time() < pc.getqf("duration") then

say("")

say("You cannot use the Quest Potion yet.")

say("")

return

end

if pc.getqf("drink_drug")==1 then

say("")

say("You already used it.")

say("")

return

end



Czyli ze ta linijka za to odpowiada ?

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...