[Quest] - Quest-uri Utile

#1
Quest 200 duele = recompensa

Cod: Selectaţi tot

quest duele begin
    state start begin
        when login with pc.level >= 85 begin
            set_state(player_kill)
        end
    end

    state player_kill begin
        when letter begin
            send_letter("Dueluri")
        end

        when button or info begin
            say_title("Experti in duele!")
         say("")
            say("Crezi ca esti cel mai bun din regat ?")
            say("Demonstreaza!")
            say("Respecta regulile si fi corect")
         say("")
         say("")
         say("")
            say_reward("Omoara 200 jucatori in duel")
         say_reward("Si iti vei primi recompensa!")
            say("")
            pc.setqf("state", 200)
            q.set_counter("Dueluri ramase:", 200)
         set_state (kill)
        end
   end

   state kill begin
      when letter begin
         send_letter("Duel")
      end
      
      when button or info begin
            say("Crezi ca esti cel mai bun din regat ?")
            say("Demonstreaza!")
            say("Respecta regulile si fi corect")
         say_reward("Dueluri ramase: "..pc.getqf("state").." ")
      end


        when kill begin
            if nu ai pentru ce.is_pc() then
            local count = pc.getqf("state") - 1
            if count <= 200 then
                pc.setqf("state", count)
                q.set_counter("Dueluri restante:", count)
            end
            if count == 0 then
                say_title("BRAVO ai reusit!")
                say("Ai omorat 200 jucatori in duel!")
                say("Recompesa:")
                say_reward("1.000.000.000 Yang")
            pc.change_money(1000000000)
            notice_all("".. pc.get_name() .." a castigat 200 de duele")
                clear_letter()
                set_state(__COMPLETE__)

            end
        end
    end
    end

    state __COMPLETE__ begin
    end
end
Quest Banca :

Cod: Selectaţi tot

quest banker begin
	state start begin
		when 20041.chat."Banca" pc.is_gm() begin banker.bankdialog() 
	end 
		function bankdialog() 
		say_title("Banca:") 
		say("Va ofer posibilitatea de a va ") 
		say("depozita yang-ul fara dobânda..") 
		say("Dar puteţi adauga în cont maxim") 
		say("4.611.686.016.279.904.256 yang!") 
		say("") 
		local action = select("Adauga în cont", "Extrage din cont", "Închide") 
		if action == 1 
		then say_title("Banca:") 
		if pc.gold < 1 then 
		say("Nu aveţi niciun yang.") 
		say("") 
		return
		end 
		say("Deţii "..pc.gold.." Yang.")
		say("Cât de mult vrei sa adaugi în cont?")
		local yang = tonumber(input()) 
		if yang < 0 then 
		return
		end 
		if yang > pc.gold then yang = pc.gold end pc.changegold(-yang)
		local saved_rest = tonumber(pc.getqf("saved_rest")) 
		local saved_signed_longs = tonumber(pc.getqf("saved_signed_longs"))
		if
		saved_rest + yang > 2147483647 then pc.setqf("saved_signed_longs", saved_signed_longs + 1) 
		pc.setqf("saved_rest", saved_rest + yang - 2147483647) 
		else 
		pc.setqf("saved_rest", saved_rest + yang) 
		end 
		say_title("Banca:") 
		say("Ai adaugat în cont "..yang.." yang.") 
		say("") 
		return 
		elseif action == 2 then
		local saved_rest = tonumber(pc.getqf("saved_rest"))
		local saved_signed_longs = tonumber(pc.getqf("saved_signed_longs")) 
		local saved_yang = saved_signed_longs*2147483647+saved_rest 
		say_title("Banca:") 
		if saved_yang < 1 then say("Nu poþi adauga aceasta suma în cont!") 
		say("")
		return 
		end 
		say("Va puteţi extrage yangul din cont") 
		say("oricând vreţi şi aveţi posibilitatea.") 
		say("") 
		say_reward("Soldul contului: "..saved_yang.." Yang") 
		say("") 
		say("Cât yang doriţi sa extrageţi?") 
		local yang = tonumber(input()) 
		if yang < 0 then
		return 
		end 
		if yang > saved_yang then yang = saved_yang end if pc.gold + yang > 1899999999 then 
		yang = 1899999999 - pc.gold 
		end 
		if yang > saved_yang then yang = saved_yang
		end 
		if saved_rest - yang < 0 then pc.setqf("saved_signed_longs", saved_signed_longs - 1) 
		pc.setqf("saved_rest", 2147483647 - yang + saved_rest) 
		else 
		pc.setqf("saved_rest", saved_rest - yang) 
		end 
		pc.changegold(yang) 
		say_title("Banca:") 
		say("Aţi extras din cont "..yang.." yang.") 
		say("Multumim!") 
		say("") 
		end 
		end 
		end 
		end
Quest cumpara vrajeste obiectul:

Cod: Selectaţi tot

quest switch_fix begin
                state start begin                 
                        when 9003.chat."Vrajeste Obiectul" begin
                                local pcLevel = 15
                                local minItem = 1
                                local maxItem = 200
        local itemValue = 71084
                                local singleCost = 2000
                                say_title("Administrator Vrajeste Obiectul:")
                                say("Buna, eu sunt administratorul Vrajeste Obiectul.")
                                say("Cu ajutorul meu, vei primi niste Vrajeste Obiectul  la alegerea ta")
                                say("Pentru  a schimba bonusurile de pe iteme.")
                                say_item_vnum(itemValue)
                                say_reward("Introduceti câte Vrajeste Obiectul vreti,")
                                say_reward(string.format("reamintit ca acest lucru trebuie sa intre %d e %d", minItem, maxItem))
                                local quant = math.floor(tonumber(input()))
                                if quant < minItem or quant> maxItem or quant == nil then
                                        say_title("Administrator Vrajeste Obiectul:")
                                        say("Îmi pare rau, numarul introdus nu este valid.")
                                        say_reward(string.format("Suma trebuie sa fie între %d e %d", minItem, maxItem))
                                        return
                                end
                                say_title("Administrator Vrajeste Obiectul:")
                                say("Ei bine, ati introdus numarul corect.[ENTER]")
                                say_reward(string.format("Numarul de Vrajeste Obiectul: %d", quant))
                                say_reward(string.format("Nivel necesar: %d", pcLevel))
                                say_reward(string.format("Nivelul tau: %d", pc.get_level()))
                                say_reward(string.format("Costa pentru un singur Vrajeste Obiectul: %d Yang.", singleCost))
                                say("")
                                local price = quant*singleCost
                                say_reward(string.format("Cost total: %d Yang.", price))
                                say("")
                                say("Introduceti codul pentru a primi elementul ales.")
                                local psw = number(10000,99999)
                                say_reward("Codice: "..psw)
                                local check = tonumber(input())
                                --controlli--
                                say_title("Administrator Vrajeste Obiectul:")
                                if check != psw or check == nil then
                                        say("Codul introdus nu se potriveste.")
                                        say("Introduceti-l corect data viitoare.")
                                        return
                                end
                                if pc.count_item(itemValue) > 0 then
                                        say("Nu poti primi alte Vrajeste Obiectul")
                                        say("Prima data foloseste cele din inventar.")
                                        return
                                end
                                if pc.get_gold() < price then
                                        say("Nu aveti suficienti bani.")
                                        say("Revino când ai suma necesara")
                                        return
                                end
                                if pc.get_level() < pcLevel then
                                        say("Nu au nivelul necesar pentru a continua.")
                                        say("Reintoarcete înapoi când ai nivelul necesar.")
                                        return
                                end
                                -- end control--
                                say("În regula, ai primit Vrajeste Obiectul!")
                                say_item_vnum(itemValue)
                                pc.changegold(-price)
                                pc.give_item2(itemValue, quant)
                        end
                end
        end
Inel Teleporter :

Cod: Selectaţi tot

quest warpring begin
   state start begin
      when 70007.use begin
         local x
         local y
         local t
         local e = pc.get_empire()
         say_title("Teleporter:")
         say("Încotro vrei sã mergi strãine?")
         local s = select("Map1", "Map2", "Valea Orcilor", "Deºert", "Sohan", "Tara de foc", "Urmãtoarele", "Închide")
         if s==7 then
            say_title("Teleporter:")
            say("Încotro vrei sã mergi strãine?")
            local p = select("Turnul Demonilor", "V1", "Pãdurea Fantomelor", "Pãdurea Roºie", "Tara Gigantilor", "Grota Exilului", "Închide")
            if p==1 then
               x="590400"
               y="110500"
            elseif p==2 then
               x="91900"
               y="525400"
            elseif p==3 then
               x="289000"
               y="5800"
            elseif p==4 then
               say_title("Teleporter")
               say("Încotro vrei sã mergi strãine?")
               t = select("Început", "Sfârºit", "Închide")
               if t==1 then
                  x="1119900"
                  y="70800"
               elseif t==2 then
                  x="1119200"
                  y="7000"
               end
            elseif p==5 then
               x="828100"
               y="763400"
            elseif p==6 then
               x="284200"
               y="809600"
            end
         elseif s==1 then
            say_title("Teleporter")
            say("Încotro vrei sã mergi strãine?")
            t = select("Regatul Roºu", "Regatul Galben", "Regatul Albastru","Închide")
            if t==1 then
               x="473900"
               y="954600"
            elseif t==2 then
               x="63200"
               y="166700"
            elseif t==3 then
               x="959600"
               y="269700"
            end
         elseif s==2 then
            say_title("Teleporter:")
            say("Încotro vrei sã mergi strãine?")
            t = select("Regatul Roºu", "Regatul Galben", "Regatul Albastru", "Închide")
            if t==1 then
               x="352300"
               y="882700"
            elseif t==2 then
               x="145700"
               y="239800"
            elseif t==3 then
               x="863800"
               y="246000"
            end
         elseif s==3 then
            say_title("Teleporter:")
            say("Încotro vrei sã mergi strãine?")
            t = select("Început", "Centru", "Arahani", "Închide")
            if t==1 then
               if e==1 then
                  x="402100"
                  y="673900"                  
               elseif e==2 then
                  x="270400"
                  y="739900"
               elseif e==3 then
                  x="321300"
                  y="808000"
               end
            elseif t==2 then
               x="332700"
               y="745600"
            elseif t==3 then
               x="282800"
               y="792800"
            end
         elseif s==4 then
            say_title("Teleporter:")
            say("Încotro vrei sã mergi strãine?")
            t = select("Inceput", "Sfârºit", "Închide")
            if t==1 then
               if e==1 then
                  x="217800"
                  y="627200"                  
               elseif e==2 then
                  x="221900"
                  y="502700"
               elseif e==3 then
                  x="344000"
                  y="502500"
               end
            elseif t==2 then
               x="296300"
               y="547500"
            end
         elseif s==5 then
            say_title("Teleporter")
            say("Încotro vrei sã mergi strãine?")
            t = select("Început", "Mijloc", "Închide")
            if t==1 then
               if e==1 then
                  x="434200"
                  y="290600"                  
               elseif e==2 then
                  x="375200"
                  y="174900"
               elseif e==3 then
                  x="491800"
                  y="173600"
               end
            elseif t==2 then
               x="436200"
               y="215300"
            end         
         elseif s==6 then
            say_title("Teleporter:")
            say("Încotro vrei sã mergi strãine?")
            t = select("Început", "Închide")
            if t==1 then
               if e==1 then
                  x="599400"
                  y="756300"                  
               elseif e==2 then
                  x="597800"
                  y="622200"
               elseif e==3 then
                  x="730700"
                  y="689800"
               end
            elseif t==2 then
               return
            end
         end         
         if s!=8 or p!= 7 then
            pc.warp(x, y)
         end
      end
   end
end
Quest informatii item-shop

Cod: Selectaţi tot

quest shop_info begin
	state start begin
		when login begin
			send_letter("Metin2Rien - Donatii")
		end
		when button or info begin
			say_title("Metin2Rien - Donatii")
			say("")
			say("Daca vrei sa intri in posesia unor iteme.")
			say("poti face acest lucru urmand pasi")
			say("de mai jos.")
			say("Sau te poti loga pe site")
			say("")
			say_title("Informatii:")
			say("")
			say_reward("Donatiile dvs. vor intra in totalitate in plata dedicatului")
			say_reward("pentru ca serverul sa fie online cat mai mult timp.")
			say("Pentru mai multe informatii accesati site-ul nostru")
			say("Contact: donatii.rien@yahoo.com")
			say("Forum: http://board.metin2riencom")
		end
	end
end
Quest activare rate :

Cod: Selectaţi tot

quest activare_rate begin
	state start begin
		when letter with pc.is_gm() begin
			send_letter("Activeazã Ratele")
		end
		when info or button with pc.is_gm() begin
			command("priv_empire 0 1  100  699")
			command("priv_empire 0 2  100 699")
			command("priv_empire 0 3 100 699")
			command("priv_empire 0 4 100 699")
			send_letter("Activeazã Ratele")
		end
	end
end
Quest raportare hack

Cod: Selectaţi tot

   quest reporthack begin
        state start begin
            when login begin
                set_state(report)
            end
        end
        state report begin
            when letter begin
                send_letter("Raporteazã player-ul")
            end
            when button or info begin
                say_title("Raporteazã player-ul")
                say_reward("ANUNÞ: Dacã abuzaþi de acest sistem puteþi primi ban!")
                say("Cu acest sistem puteþi semnala un hacker Staffului.")
                say("Puteþi raporta playeri pentru:")
                say("Damage hack")
                say("Trade bug")
                say("Injurãturi")
                say("GM impertinenþi")
                say("Player impertinenþi")
                say("")
                say_reward("Eºti sigur cã vrei sã raportezi pe cineva?")
                local a = select("Da","Nu")
                if a == 2 then
                    return
                end
                say_title("Raporteazã player-ul")
                say_reward("ANUNÞ: Dacã abuzaþi de acest sistem puteþi primi ban!")
                say("Care e numele playerului?")
                say("")
                say_reward("Încearcã sã scrii numele corect.")
                local name = input()
                if name == "" then
                    return
                end
                local u_vid = find_pc_by_name(name)
                if u_vid == 0 then
                    say_title("Raporteazã player-ul")
                    say_reward("ANUNÞ: Dacã abuzaþi de acest sistem puteþi primi ban!")
                    say("Acest player nu e online.")
                    return
                end
                say("Ce hack/ bug a folosit?")
                local reporter = pc.get_name()
                local b = select("Damage hack", "Trade bug", "Injurãturi", "GM impertinenþi", "Player impertinenþi","Exit")
                    if b == 1 then
                        char_log(1, reporter, name)                         
                    elseif b == 2 then
                        char_log(2, reporter, name)                         
                    elseif b == 3 then
                        char_log(3, reporter, name)                         
                    elseif b == 4 then
                        char_log(4, reporter, name)
                    elseif b == 5 then
                        char_log(5, reporter, name)                 
                    else
                        return
                    end
                say_title("Report player")
                say_reward("ANUNÞ: Dacã abuzaþi de acest sistem puteþi primi ban!")
                say("IMPORTANT: Numele tãu a fost inregistrat.")
                say("Îþi mulþumim")
                say("Echipa va cerceta aceastã persoana în curând.")
                say("")
                say("Vrei sã raportezi alt player? Apasã 'N'")
            end
        end
    end  
Quest PVP :

Cod: Selectaţi tot

quest neopvp begin    
    state start begin    
        when login or levelup with pc.get_level() >= 98 and pc.getqf("level") == 0 begin
            say("Buna.")
            say("... ai ajuns la nivelul 98.")
            say("Remarcabil!")
            say("Acum, vom vedea ce fel de luptator esti!")
            say("...")
            say("Noua ta cerinta, este sa lupti!")
            say("Pentru fiecare lupta, vei primi un punct PvP.")
            say("Iar pentru, punctele adunate, vei cate o recompensa care iti va imbunatati calitaea de luptator.")
            say_reward("50 puncte PvP = + 3% tare impotriva semi-oamenilor")
            say_reward("100 puncte PvP = + 500 Puncte Vitale")
            say_reward("200 puncte PvP = + 5% tare impotriva semi-oamenilor")
            say_reward("500 puncte PvP = + 1500 Puncte Vitale")
            pc.setqf("level", 1)
        end
        when kill with nu ai pentru ce.is_pc() begin
            if get_time() < pc.getqf("kill_time") then 
                chat("Cele 2 min. nu au trecut inca.")
                chat("Nu vei obtine nici un punct.")
                return
            end    
            chat("Ai obtinut un punct. Te felicit! ")
            chat("Poti obtine cate un punct la fiecare 2 minute.")
            chat("Acum ai : "..pc.getqf("kill_punkte").." puncte.")
            pc.setqf("kill_punkte", pc.getqf("kill_punkte")+1)
            pc.setqf("kill_time", get_time() + 60*2) 
            if pc.getqf("kill_punkte") == 50 then
                affect.add_collect(apply.ATTBONUS_HUMAN,3,60*60*24*365*60)
                say("Ai reusit, ai adunat 50 puncte PvP.")
                say("Taria impotriva semi-oamenilor a crescut cu 3(%) procente.")
            elseif pc.getqf("kill_punkte") == 100 then
                affect.add_collect(apply.MAX_HP,500,60*60*24*365*60)
                say("Ai reusit, ai adunat 100 puncte PvP.")
                say("Punctele tale vitale au crescut cu 500.")
            elseif pc.getqf("kill_punkte") == 200 then
                affect.add_collect(apply.ATTBONUS_HUMAN,5,60*60*24*365*60)
                say("Ai reusit, ai adunat 200 puncte PvP.")
                say_reward("...")
                say_reward("Taria impotrva semi-oamenilor a crescut cu 5(%) procente.")
            elseif pc.getqf("kill_punkte") == 500 then
                affect.add_collect(apply.MAX_HP,1500,60*60*24*365*60)
                say("Ai reusit, ai adunat 500 puncete PvP.")
                say("Punctele tale vitale au crescut cu 1500.")
            end
        end
    end
end
Quest Panoul Moderatorului

Cod: Selectaţi tot

quest mod_item begin
        state start begin
            when 70021.use with pc.is_gm() or pc.get_gm_level() >= 2 begin
                   
                say_title ("Buna, ".. pc.get_name() ..".")
                say("")
                            say("Itemul Moderatorului poate : sa dea mute, ")
                            say("- Sa dea mute, ")
                            say("- Sa scoata mute-ul")
                            say("- Sa te teleporteze pe tine sau un player la tine. ")
                say("")
                            local a = select ( "Da Mute la un player" , "Scoate mute-ul la un player" , "Teleporteaza-te", "Transfera un Player", "Iesire" )
                           
                if a == 1 then
                            say("Te rog sa scrii numele celui caruia vrei sa ii dai mute.")
                            say("")
                            say("Atentie! Daca abuezi de acest item ,poti fi scos din functie!")
                say("Fi sigur ca scrii numele jucatorului corect!")
                            local cblock = input()
                say("Acesta e numele playerului caruia doresti sa ii dai mute???")
                say_title(" Name : ".. cblock .." ")
                local m = select ( "Da", "Nu")
                if m == 1 then
                            say("Timp in secunde!")
                            say("Exemple :")
                            say("5 Min. = 300s")
                            say("10 Min. = 600s")
                            say("1 Ora = 3600s")
                        say("Scrie numarul de secunde dorite!")
                        local cbtime = input()
                        command("block_chat ".. cblock .." ".. cbtime .."")
                            notice_all("Player-ul ".. cblock .." i s-a dat mute pentru ".. cbtime .." secunde!")
                           notice_all("Aveti grija la limbaj si la comportament!")
                end
                if m == 2 then
                return
                end
                            end
                           
                        if a == 2 then
                           say("Scrie numele playerului caruia doresti sa ii scoti mute-ul.")
                   say("Poti sa il verifici in lista celor ce au mute.")
                   say("cu aceasta comanda : block_chat_list ")
                           local cublock = input()
                           command("block_chat ".. cublock .." 0")
                           notice_all("Playerul ".. cublock .." poate iarasi sa vorbeasca!")
                 notice_all("Mute-ul i-a fost scos!")
                 notice_all("Sa nu se mai repete greseala facuta!")
                           end
                           
                   if a == 3 then
                   say("Te poti teleporta langa playerii care doresti tu.")
                   say("Scrie numele player-ului langa care doresti sa te teleportezi.")
                   say("Atentie! Cateodata, poti fi teleportat putin mai departe de acesta.")
              say("Asa ca te rog sa mai folosesti odata aceasta optiune daca intampini erori")
                local t = select ("Teleporteaza-ma!", "Nu, merci!")
                if t == 1 then
                say("Scrie numele playerului :")
                local wtp = input()
                command("warp ".. wtp .."")
                end
                if t == 2 then
                return
                    end   
                   end
           
                   if a == 4 then
                   say("Poti sa transferi playerii langa tine acum.")
                   say("Trebuie doar sa introduci numele playerului aici :)")
                   say("Vrei sa aduci un player langa tine? :D")
                local r = select ("Transfera!", "Nu, merci!")
                if r == 1 then
                say("Scrie numele playerului aici :")
                local ttp = input()
                command("transfer ".. ttp .." ")
                end
                if r == 2 then
                return
                end               
                    end

                   if a == 5 then
                   return
                   end

    end
    end
    end
Quest auto mesaje

Cod: Selectaţi tot

    quest automessage begin
       state start begin
          when login begin
             timer("timer1", 600)
          end
          
          when timer1.timer with pc.is_gm() begin
             timer("timer2", 720)
             command("n INFO: Echipa nu este raspunzãtoare de contul tãu")
             command("n INFO: Citiþi cu atenþie regulamentul jocului")
             command("n INFO: Vizitaþi forumul serverului,pentru ultimele noutaþi ºi informaþii.")
             command("n INFO: Pentru alte probleme sau nelãmuriri contacteazã un Admin")
          end
          
          when timer2.timer with pc.is_gm() begin
             timer("timer3", 1150)
             command("n INFO: Echipa nu este raspunzãtoare de contul tãu")
             command("n INFO: Citiþi cu atenþie regulamentul jocului")
             command("n INFO: Vizitaþi forumul serverului,pentru ultimele noutaþi ºi informaþii.")
             command("n INFO: Pentru alte probleme sau nelãmuriri contacteazã un Admin")
          end
          
          when timer3.timer with pc.is_gm() begin
             timer("timer4", 900)
              command("n INFO: Echipa nu este raspunzãtoare de contul tãu")
             command("n  INFO: Citiþi cu atenþie regulamentul jocului")
             command("n  INFO: Vizitaþi forumul serverului,pentru ultimele noutaþi ºi informaþii.")
             command("n  INFO: Pentru alte probleme sau nelãmuriri contacteazã un Admin")
          end 
       end
    end
Tutorial instalare quest:
1. Salvaţi conţinutul quest-ului într-un fişier text numit de exemplu nume_quest.quest .
2. Vă conectaţi la filezilla / winscp şi întrati în /usr/home/game/share/locale/germany/quest (depinde ce server aveţi).
3. Îl puneţi acolo (să fie .quest) şi da-ţi permisiuni 777.
4. Te loghezi în FreeBSD / putty şi scrii în felul următor: cd /usr/home/game/share/locale/germany/quest apoi ./qc nume_quest.quest
5. Intraţi pe server şi scrieţi /reload q.
6. Testaţi quest-ul.
Imagine
Imagine
Imagine
Imagine

Înapoi la “[Resurse] Quest-uri”

Cine este conectat

Utilizatori răsfoind acest forum: Niciun utilizator înregistrat și 1 vizitator