Problema horse_summon quest

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

Nou Venit
Mesaje: 11
Membru din: 29 Iun 2015, 14:47
Regat: Jinno
Aprecieri: 44  
Mulţumiri: 0
Medalii

*Problemă/Întrebare: Vreau sa pot sa urc pe cal din imagine-cal, cal armat, cal militar
Tipologie server(PvM / PvP): Clean
*Resursă folosită: *Link exclusiv J4M* Nu mai gasesc link, dar este SERVERFILE CLEAN FOR J4M.
*ServerFiles utilizat: Nu mai gasesc link, dar este SERVERFILE CLEAN FOR J4M.
*Syserr:
Poză:
*Detalii suplimentare:

Am un quest pus pentru horse_summon, dar cand dau pe oricare dintre imagini imi zice linia " Intai trimite animalutul de companie", desi nu am niciun animalut de companie echipat ca e sever clean, de-abia am inceput sa urc questuri si sisteme etc.
O sa las mai jos questul, poate imi spune cineva ce se intampla:

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("Grãjdar:")
			say("Vãd ca ai pierdut Imaginea de Cal ..")
			say("")
			
			local b=select("Vreau una nouã!", "Nu conteazã ..")
			
			if 1==b then
			
				if pc.money>=10000 then
				
					pc.changemoney(-10000)
					
					say_title("Grãjdar:")
					say("Poftim una nouã, dar ai grijã de ea.")

					pc.give_item2("50051", 1)
					
				else
				
					say_title("Grãjdar:")
					say("Nu ai suficient Yang.")
					
				end
				
			elseif 2==b then
			
			else
			
				say("UNKNOWN BUTTON ["..b.."]")
				
			end
			
		end
		
		when 20349.chat."Am pierdut Cartea Cailor Armaþi" with horse.get_grade()==2 and pc.countitem("50052")<1 begin
			
			say_title("Grãjdar:")
			say("Vãd ca ai pierdut Cartea Cailor Armaþi ..")
			say("")
			
			local b=select("Vreau una nouã!", "Nu conteazã ..")
			
			if 1==b then
			
				if pc.money>=50000 then
				
					pc.changemoney(-50000)
					
					say_title("Grãjdar:")
					say("Poftim una nouã, dar ai grijã de ea.")
					
					pc.give_item2("50052", 1)
					
				else
				
					say_title("Grãjdar:")
					say("Nu ai suficient Yang.")
					
				end
				
			elseif 2==b then
			
			else
			
				say("UNKNOWN BUTTON ["..b.."]")
				
			end
			
		end
		
		when 20349.chat."Am pierdut Cartea Cailor Militari" with horse.get_grade()==3 and pc.countitem("50053")<1 begin
			
			say_title("Grãjdar:")
			say("Vãd ca ai pierdut Cartea Cailor Militari ..")
			say("")
			
			local b=select("Vreau una nouã!", "Nu conteazã ..")
			
			if 1==b then
			
				if pc.money>=100000 then
				
					pc.changemoney(-100000)
					
					say_title("Grãjdar:")
					say("Poftim una nouã, dar ai grijã de ea.")
					
					pc.give_item2("50053", 1)
					
				else
				
					say_title("Grãjdar:")
					say("Nu ai suficient Yang.")
					
				end
				
			elseif 2==b then
			
			else
			
				say("UNKNOWN BUTTON ["..b.."]")
				
			end
			
		end
		
		when 50051.use with horse.get_grade()==0 begin
			
			say_title("Informaþie:")
			say("Încã nu deþii un cal!")
			
		end
		
		when 50051.use with horse.get_grade()==1 begin
		
			if pc.get_map_index() == 113 and not pc.is_gm() then
				
				say_title("Informaþie:")
				say("Nu puteþi chema calul în aceastã hartã.")
				
				return
				
			end
			
			if pc.getsp()>=100 then
				
				if number(1, 100)<=horse_summon.get_horse_summon_prob_pct() then
					
					--say_title("Informaþie:")
					--say("Calul tãu a fost chemat.")
					
					notice("Calul tãu a fost chemat.")
					
					horse.summon()
					
				else
					
					--say_title("Informaþie:")
					--say("Calul nu a fost chemat.")
					
					notice("Calul tãu nu a fost chemat.")
				
				end
			
				pc.change_sp(-100)
			
			else
				
				say_title("Informaþie:")
				say("Pentru a chema calul ai nevoie de 100 PM.")

			end
		
		end
		
		when 50051.use with horse.get_grade()==2 begin
		
			if horse.get_level() >= 22 then
				
				say_title("Informaþie:")
				say("Trimite animãluþul de companie pentru a chema calul.")
				return
				
			else
			
				say_title("Informaþie:")
				say("Foloseºti o imagine de cal greºitã.")
			
			end
			
		end
		
		when 50051.use with horse.get_grade()==3 begin
		
			if horse.get_level() >= 22 then
				
				say_title("Informaþie:")
				say("Trimite animãluþul de companie pentru a chema calul.")
				return
				
			else
			
				say_title("Informaþie:")
				say("Foloseºti o imagine de cal greºitã.")
			
			end
			
		end
		
		when 50052.use with horse.get_grade()==0 begin
		
			if horse.get_level() >= 22 then
				
				say_title("Informaþie:")
				say("Trimite animãluþul de companie pentru a chema calul.")
				return
				
			else
			
				say_title("Informaþie:")
				say("Foloseºti o imagine de cal greºitã.")
			
			end
			
		end
		
		when 50052.use with horse.get_grade()==1 begin
		
			if horse.get_level() >= 22 then
				
				say_title("Informaþie:")
				say("Trimite animãluþul de companie pentru a chema calul.")
				return
				
			else
			
				say_title("Informaþie:")
				say("Foloseºti o imagine de cal greºitã.")
			
			end
			
		end
		
		when 50052.use with horse.get_grade()==2 begin
		
			if pc.get_map_index() == 113 and not pc.is_gm() then
			
				say("Nu puteþi chema calul în aceastã hartã.")
			
				return
			
			end
			
			if pc.getsp()>=200 then
				
				if number(1, 100)<=horse_summon.get_horse_summon_prob_pct() then
					
					--say_title("Informaþie:")
					--say("Calul tãu a fost chemat.")
					
					notice("Calul tãu a fost chemat.")
					
					horse.summon()
					
				else
					
					--say_title("Informaþie:")
					--say("Calul nu a fost chemat.")
					
					notice("Calul tãu nu a fost chemat.")
				
				end
					
				pc.change_sp(-200)
					
			else
				
				say_title("Informaþie:")
				say("Pentru a chema calul ai nevoie de 200 PM.")
			
			end
		
		end
		
		when 50052.use with horse.get_grade()==3 begin
		
			if horse.get_level() >= 22 then
				
				say_title("Informaþie:")
				say("Trimite animãluþul de companie pentru a chema calul.")
				return
				
			else
			
				say_title("Informaþie:")
				say("Foloseºti o imagine de cal greºitã.")
			
			end
			
		end
		
		when 50053.use with horse.get_grade()==0 begin
		
			if horse.get_level() >= 22 then
				
				say_title("Informaþie:")
				say("Trimite animãluþul de companie pentru a chema calul.")
				return
				
			else
			
				say_title("Informaþie:")
				say("Foloseºti o imagine de cal greºitã.")
			
			end
			
		end
		
		when 50053.use with horse.get_grade()==1 begin
			
			if horse.get_level() >= 22 then
				
				say_title("Informatie:")
				say("Trimite animalutul de companie pentru a chema calul.")
				return
				
			else
			
				say_title("Informaþie:")
				say("Foloseºti o imagine de cal greºitã.")
			
			end
			
		end
		
		when 50053.use with horse.get_grade()==2 begin
		
			if horse.get_level() >= 22 then
				
				say_title("Informatie:")
				say("Trimite animalutul de companie pentru a chema calul.")
				return
				
			else
			
				say_title("Informaþie:")
				say("Foloseºti o imagine de cal greºitã.")
			
			end
			
		end
		
		when 50053.use with horse.get_grade()==3 begin
		
			if horse.get_level() >= 22 then
				
				say_title("Informaþie:")
				say("Trimite animãluþul de companie pentru a chema calul.")
				return
				
			else
				
				if pc.get_map_index() == 113 and not pc.is_gm() then
				
					say("Nu puteþi chema calul în aceastã hartã.")
					
					return
				
				end
			
				if pc.getsp()>=300 then
					
					if number(1, 100)<=horse_summon.get_horse_summon_prob_pct() then
					
						--say_title("Informaþie:")
						--say("Calul tãu a fost chemat.")
						
						notice("Calul tãu a fost chemat.")
					
						horse.summon()
					
					else
						
						--say_title("Informaþie:")
						--say("Calul nu a fost chemat.")
						
						notice("Calul tãu nu a fost chemat.")
						
					end
				
					pc.change_sp(-300)
					
				else
					
					say_title("Informaþie:")
					say("Pentru a chema calul ai nevoie de 300 PM.")
				
				end
				
			end
			
		end
		
	end
	
	state __COMPLETE__ begin
	
		when enter begin
		
			q.done()
			
		end
		
	end
	
end
Am rezolvat, am schimbat questul cu totul, nu stiu exact ce eroare are. cer T/C.
Închis
Răspunsuri
3
Vizualizări
420
Răspunsuri
1
Vizualizări
276
Răspunsuri
2
Vizualizări
291
Răspunsuri
2
Vizualizări
528

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

  • Informaţie
  • Cine este conectat

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