Modificare sau repostare quest

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
t4zu
Nivel 3

Nivel 3
Mesaje: 476
Membru din: 16 Iul 2015, 21:31
Server: Doar testez
Regat: Chunjo
Aprecieri: 94  
Mulţumiri: 44  
 Contact:
Medalii

*Problemă / Intrebare: Nu gasesc quest pentru chemarea calului am incercat sa-mi fac, e totul ok, doar ca obiectele pentru chemare nu functioneaza.
Tipologie server(PvM / PvP): -
*Resursă folosită: -
*ServerFiles utilizat: -
*Syserr: -Pentru ce am facut eu nu apare, dar nu functioneaza, nu imi apare la sfarsit quest complete, doar asta:

Cod: Selectaţi tot

QUEST : favorite_cheama_cal
STATE : start
WHEN  : 50051.use
        with horse . get_level ( ) == 1
WHEN  : 50051.use
        with horse . get_level ( ) == 0
WHEN  : 50051.use
        with horse . get_level ( ) == 11
WHEN  : 50051.use
        with horse . get_level ( ) == 15
WHEN  : 50051.use
        with horse . get_level ( ) == 21
WHEN  : 50051.use
        with horse . get_level ( ) == 30
WHEN  : 50052.use
        with horse . get_level ( ) == 11
WHEN  : 50052.use
        with horse . get_level ( ) == 15
WHEN  : 50052.use
        with horse . get_level ( ) == 0
WHEN  : 50052.use
        with horse . get_level ( ) == 1
WHEN  : 50052.use
        with horse . get_level ( ) == 21
WHEN  : 50052.use
        with horse . get_level ( ) == 30
WHEN  : 50053.use
        with horse . get_level ( ) == 21
WHEN  : 50053.use
        with horse . get_level ( ) == 22
WHEN  : 50053.use
        with horse . get_level ( ) == 0
WHEN  : 50053.use
        with horse . get_level ( ) == 1
WHEN  : 50053.use
        with horse . get_level ( ) == 11
WHEN  : 50053.use
        with horse . get_level ( ) == 15
WHEN  : 50053.use
        with horse . get_level ( ) == 30

Fara nici un "Abort: Core dumped", asta e tot
Poză: -
*Detalii suplimentare: Am tot cautat un quest pentru strigarea calului (cal normal, cal armat si cal militar), dar nu am gasit, asa ca am incercat eu sa imi fac questul, cat mai simplu, dar nu functioneaza). Daca va rog imi puteti da voi un quest de strigare sau il puteti modifica pe acela apoi sa-l repostati?

Quest:

Cod: Selectaţi tot

quest favorite_cheama_cal begin
	state start begin		
		when 50051.use with horse.get_level()==1 begin
			if pc.getsp()>=100 then									
				horse.summon()
				say_chat("_________________________________________________")
				say_chat("xyz system:")
				say_chat("(Ro) Cal strigat cu succes!")
				say_chat("(En) The horse was successfully shouted!")
				pc.change_sp(-100)
			else
				say_chat("_________________________________________________")
				say_chat("xyz system:")
				say_chat("(Ro) Nu aveti suficienta mana, pentru a striga calul!")
				say_chat("(En) You don't have enought mana to shout your horse!")
			end
		end
		when 50051.use with horse.get_level()==0 begin
			say_chat("_________________________________________________")
			say_chat("xyz system:")
			say_chat("(Ro) Nu ai cal!")
			say_chat("(En) You don't have horse!")
		end
		when 50051.use with horse.get_level()==11 begin
			say_chat("_________________________________________________")
			say_chat("xyz system:")
			say_chat("(Ro) Nu folosesti obiectul potrivit pentru a-ti chema calul!")
			say_chat("(En) You don't use right object to shout your horse!")
		end
		when 50051.use with horse.get_level()==15 begin
			say_chat("_________________________________________________")
			say_chat("xyz system:")
			say_chat("(Ro) Nu folosesti obiectul potrivit pentru a-ti chema calul!")
			say_chat("(En) You don't use right object to shout your horse!")
		end
		when 50051.use with horse.get_level()==21 begin
			say_chat("_________________________________________________")
			say_chat("xyz system:")
			say_chat("(Ro) Nu folosesti obiectul potrivit pentru a-ti chema calul!")
			say_chat("(En) You don't use right object to shout your horse!")
		end
		when 50051.use with horse.get_level()==30 begin
			say_chat("_________________________________________________")
			say_chat("xyz system:")
			say_chat("(Ro) Nu folosesti obiectul potrivit pentru a-ti chema calul!")
			say_chat("(En) You don't use right object to shout your horse!")
		end
		when 50052.use with horse.get_level()==11 begin
			if pc.getsp()>=200 then				
				say_chat("_________________________________________________")
				say_chat("xyz system:")
				say_chat("(Ro) Cal strigat cu succes!")
				say_chat("(En) The horse was successfully shouted!")
				horse.summon()				
				pc.change_sp(-200)
			else
				say_chat("_________________________________________________")
				say_chat("xyz system:")
				say_chat("(Ro) Nu aveti suficienta mana, pentru a striga calul! (necesar 200MP)")
				say_chat("(En) You don't have enought mana to shout your horse! (need 200MP)")
			end
		end
		when 50052.use with horse.get_level()==15 begin
			if pc.getsp()>=200 then				
				say_chat("_________________________________________________")
				say_chat("xyz system:")
				say_chat("(Ro) Cal strigat cu succes!")
				say_chat("(En) The horse was successfully shouted!")
				horse.summon()				
				pc.change_sp(-200)
			else
				say_chat("_________________________________________________")
				say_chat("xyz system:")
				say_chat("(Ro) Nu aveti suficienta mana, pentru a striga calul! (necesar 200MP)")
				say_chat("(En) You don't have enought mana to shout your horse! (need 200MP)")
			end
		end
		when 50052.use with horse.get_level()==0 begin
			say_chat("_________________________________________________")
			say_chat("xyz system:")
			say_chat("(Ro) Nu ai cal!")
			say_chat("(En) You don't have horse!")
		end
		when 50052.use with horse.get_level()==1 begin
			say_chat("_________________________________________________")
			say_chat("xyz system:")
			say_chat("(Ro) Nu folosesti obiectul potrivit pentru a-ti chema calul!")
			say_chat("(En) You don't use right object to shout your horse!")
		end
		when 50052.use with horse.get_level()==21 begin
			say_chat("_________________________________________________")
			say_chat("xyz system:")
			say_chat("(Ro) Nu folosesti obiectul potrivit pentru a-ti chema calul!")
			say_chat("(En) You don't use right object to shout your horse!")
		end
		when 50052.use with horse.get_level()==30 begin
			say_chat("_________________________________________________")
			say_chat("xyz system:")
			say_chat("(Ro) Nu folosesti obiectul potrivit pentru a-ti chema calul!")
			say_chat("(En) You don't use right object to shout your horse!")
		end
		when 50053.use with horse.get_level()==21 begin
			if pc.getsp()>=300 then				
				say_chat("_________________________________________________")
				say_chat("xyz system:")
				say_chat("(Ro) Cal strigat cu succes!")
				say_chat("(En) The horse was successfully shouted!")
				horse.summon()
				pc.change_sp(-300)
			else
				say_chat("_________________________________________________")
				say_chat("xyz system:")
				say_chat("(Ro) Nu aveti suficienta mana, pentru a striga calul!")
				say_chat("(En) You don't have enought mana to shout your horse!")
			end
		end
		when 50053.use with horse.get_level()==22 begin
			if pc.getsp()>=300 then				
				say_chat("_________________________________________________")
				say_chat("xyz system:")
				say_chat("(Ro) Cal strigat cu succes!")
				say_chat("(En) The horse was successfully shouted!")
				horse.summon()
				pc.change_sp(-300)
			else
				say_chat("_________________________________________________")
				say_chat("xyz system:")
				say_chat("(Ro) Nu aveti suficienta mana, pentru a striga calul!")
				say_chat("(En) You don't have enought mana to shout your horse!")
			end
		end
		when 50053.use with horse.get_level()==0 begin
			say_chat("_________________________________________________")
			say_chat("xyz system:")
			say_chat("(Ro) Nu ai cal!")
			say_chat("(En) You don't have horse!")
		end
		when 50053.use with horse.get_level()==1 begin
			say_chat("_________________________________________________")
			say_chat("xyz system:")
			say_chat("(Ro) Nu folosesti obiectul potrivit pentru a-ti chema calul!")
			say_chat("(En) You don't use right object to shout your horse!")
		end
		when 50053.use with horse.get_level()==11 begin
			say_chat("_________________________________________________")
			say_chat("xyz system:")
			say_chat("(Ro) Nu folosesti obiectul potrivit pentru a-ti chema calul!")
			say_chat("(En) You don't use right object to shout your horse!")
		end
		when 50053.use with horse.get_level()==15 begin
			say_chat("_________________________________________________")
			say_chat("xyz system:")
			say_chat("(Ro) Nu folosesti obiectul potrivit pentru a-ti chema calul!")
			say_chat("(En) You don't use right object to shout your horse!")
		end
		when 50053.use with horse.get_level()==30 begin
			say_chat("_________________________________________________")
			say_chat("xyz system:")
			say_chat("(Ro) Nu folosesti obiectul potrivit pentru a-ti chema calul!")
			say_chat("(En) You don't use right object to shout your horse!")
		end
	end	
end
Avatar utilizator
eubogdanel2018
Nivel 1

Nivel 1
Mesaje: 122
Membru din: 27 Dec 2017, 02:57
Server: Metin2Destros
Regat: Shinsoo
Aprecieri: 17  
Mulţumiri: 11  
Medalii

Uite un quest de genul asta de pe j4m doar ca nu ai stiut cum sa cauti.

Cod: Selectaţi tot

quest horse_summon begin
   state start begin
      function get_horse_summon_prob_pct()  local skill_level=pc.get_skill_level(131)  if skill_level==1 then   return 15  elseif skill_level==2 then   return 20  elseif skill_level==3 then   return 30  elseif skill_level==4 then   return 40  elseif skill_level==5 then   return 50  elseif skill_level==6 then   return 60  elseif skill_level==7 then   return 70  elseif skill_level==8 then   return 80  elseif skill_level==9 then   return 90  elseif skill_level>=10 then   return 100  end  return 10 end
      
      when 20349.chat."Am pierdut Imaginea de Cal" with horse.get_grade()==1 and pc.countitem("50051")<1 begin
         say_title("Grajdar")
         say("Foarte nasol ca ai pierdut imaginea de cal")
         say("Eu iti pot fabrica alta imagine de cal dar te va costa 500k.")
         say("")
         local b=select("Cumpar imaginea de Cal.", "Nu imi mai trebuie")
         if 1==b then
            if pc.money>=500000 then
               pc.changemoney(-500000)
               say_title("Grajdar")
               say("Uite imaginea de cal.")
               say("Fii mai atent de acum.")
               pc.give_item2("50051", 1)
            else
               say_title("Grajdar")
               say("Nu ai destui Yang.")
            end
         elseif 2==b then
         else
            say("UNKNOWN BUTTON ["..b.."]")
         end
      end
      when 20349.chat."Am pierdut cartea Calului Armat." with horse.get_grade()==2 and pc.countitem("50052")<1 begin
         say_title("Grajdar")
         say("Foarte nasol ca ai pierdut cartea Calului Armat")
         say("Eu iti pot fabrica alta carte dar te va costa 1kk.")
         say("")
         local b=select("Cumpar Cartea Calului Armat.", "Nu imi mai trebuie.")
         if 1==b then
            if pc.money>=1000000 then
               pc.changemoney(-1000000)
               say_title("Grajdar")
               say("Uite Cartea Calului Armat.")
               say("Fii mai atent de acum.")
               pc.give_item2("50052", 1)
            else
               say_title("Grajdar")
               say("Nu ai destui Yang.")
            end
         elseif 2==b then
         else
            say("UNKNOWN BUTTON ["..b.."]")
         end
      end
      when 20349.chat."Am pierdut Cartea Calului Militar" with horse.get_grade()==3 and pc.countitem("50053")<1 begin
         say_title("Grajdar")
         say("Foarte nasol ca ai pierdut cartea")
         say("Calului Militar.")
         say("Eu iti pot fabrica alta dar te va costa 2kk.")
         local b=select("Cumpar Cartea Calului Militar.", "Nu imi mai trebuie.")
         if 1==b then
            if pc.money>=2000000 then
               pc.changemoney(-2000000)
               say_title("Grajdar")
               say("Uite Cartea Calului Militar.")
               say("Fii mai atent de acum.")
               pc.give_item2("50053", 1)
            else
               say_title("Grajdar")
               say("Nu ai destui Yang.")
            end
         elseif 2==b then
         else
            say("UNKNOWN BUTTON ["..b.."]")
         end
      end
      when 50051.use with horse.get_grade()==0 begin
         say("Nu detii un cal")
      end
      when 50051.use with horse.get_grade()==1 begin
         if pc.getsp()>=250 then
            if number(1, 100)<=horse_summon.get_horse_summon_prob_pct() then
               say_title ( "Informatii:" ) 
               say_reward ( "Calul a venit!!" ) 
               say ( "" ) 
               horse.summon()
            else
               say_title ( "Informatii:" ) 
               say_reward ( "Calul nu a venit!!" ) 
               say_reward ( "Pentru a putea chema calul mai repede in situatii de urgenta" ) 
               say_reward ( "Citeste manualul Chemarea Calului." ) 
               say_reward ( "" ) 
            end
            pc.change_sp(-250)
         else
            say_title ( "Informatii:" ) 
            say_reward ( "Nu ai reusit sa chemi calul" ) 
            say_reward ( "Pentru a chema calul ai nevoie de" ) 
            say_reward ( "250 mana" ) 
         end
      end
      when 50051.use with horse.get_grade()==2 begin
         say("Calul nu a venit.")
      end
      when 50051.use with horse.get_grade()==3 begin
         say("Calul nu a venit.")
      end
      when 50052.use with horse.get_grade()==0 begin
         say("Calul nu a venit.")
      end
      when 50052.use with horse.get_grade()==1 begin
         say("Calul nu a venit.")
      end
      when 50052.use with horse.get_grade()==2 begin
         if pc.getsp()>=300 then
            if number(1, 100)<=horse_summon.get_horse_summon_prob_pct() then
               say_title ( "Informatii:" ) 
               say_reward ( "Calul a fost chemat cu succes." ) 
               say ( "" ) 
               horse.summon()
            else
               say_title ( "Informatii:" ) 
               say_reward ( "Calul nu a venit!!" ) 
               say_reward ( "Pentru a putea chema calul mai repede in situatii de urgenta" ) 
               say_reward ( "Citeste manualul Chemarea Calului." ) 
               say_reward ( "" ) 
            end
            pc.change_sp(-300)
         else
            say_title ( "Informatii:" ) 
            say_reward ( "Nu ai reusit sa chemi calul" ) 
            say_reward ( "Pentru a chema calul ai nevoie de" ) 
            say_reward ( "300 mana" )
         end
      end
      when 50052.use with horse.get_grade()==3 begin
         say("Calul nu a venit.")
      end
      when 50053.use with horse.get_grade()==0 begin
         say("Calul nu a venit")
      end
      when 50053.use with horse.get_grade()==1 begin
         say("Calul nu a venit.")
      end
      when 50053.use with horse.get_grade()==2 begin
         say("Calul nu a venit.")
      end
      when 50053.use with horse.get_grade()==3 begin
         if pc.getsp()>=500 then
            if number(1, 100)<=horse_summon.get_horse_summon_prob_pct() then
               say_title ( "Informatii:" ) 
               say_reward ( "Calul a fost chemat cu succes." ) 
               say_reward ( "" ) 
               horse.summon()
            else
               say_title ( "Informatii:" ) 
               say_reward ( "Calul nu a venit!!" ) 
               say_reward ( "Pentru a putea chema calul mai repede in situatii de urgenta" ) 
               say_reward ( "Citeste manualul Chemarea Calului." )
               say_reward ( "" ) 
            end
            pc.change_sp(-500)
         else
            say_title ( "Informatii:" ) 
            say_reward ( "Nu ai reusit sa chemi calul" ) 
            say_reward ( "Pentru a chema calul ai nevoie de" ) 
            say_reward ( "500 mana" )
         end
      end
   end
   state __COMPLETE__ begin
      when enter begin
         q.done()
      end
   end
end
link de pe j4m : http://just4metin.ro/arhiva-cereri/cere ... 59528.html
Avatar utilizator
Kid0
Veteran

Veteran
Mesaje: 1420
Membru din: 12 Aug 2015, 13:33
Server: restoria2(ex)
Regat: Shinsoo
Aprecieri: 39  
Mulţumiri: 13  
Discord: Copiază ID
 Contact:
Medalii

arhivat
Imagine
Imagine
Imagine
Afișează semnătura
Închis
Răspunsuri
1
Vizualizări
129
Răspunsuri
3
Vizualizări
415
Răspunsuri
3
Vizualizări
276

Înapoi la “Arhivă Probleme şi Întrebări”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 21 vizitatori