Problema la quest

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
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ă: Nu imi pot face questul sa functioneze
Tipologie server: test
*Resursă folosită: -
*ServerFiles utilizat: -
*Syserr: Nu exista (fara CoreDumped)
Poză: -
*Detalii suplimentare: Mi-am facut un quest pentru magazinul general, dar nu functioneaza si nu da nici eroare sau kill, se incarca doar pentru:

Cod: Selectaţi tot

QUEST : MagazinulGeneral
STATE : start
WHEN  : 9003.chat ("Potiuni   (Potions)")
WHEN  : 9003.chat ("Obiecte   (Objects)")
WHEN  : 9003.chat ("Minerale   (Minerals)")
Quest:

Cod: Selectaţi tot

quest MagazinulGeneral begin
    state start begin
        when 9003.chat."Potiuni   (Potions)" begin
			say_title("Potiuni   (Potions)")
            say_alb("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
			say_alb("(En) Do you want to open the store?")
			say_alb("")
			say_alb("")
			say_alb("")
			say_alb("")
			say_reward("Yes > (Da) / No > (Nu)")
			say_verde2("Quest22-TEST")
            local s = select("Da", "Nu")
            if s == 1 then
                npc.open_shop(3)
            else
                return
            end
        end
		when 9003.chat."Obiecte   (Objects)" begin
			say_title("Obiecte   (Objects)")
            say_alb("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
			say_alb("(En) Do you want to open the store?")
			say_alb("")
			say_alb("")
			say_alb("")
			say_alb("")
			say_reward("Yes > (Da) / No > (Nu)")
			say_verde2("Quest22-TEST")
            local s = select("Da", "Nu")
            if s == 1 then
                npc.open_shop(115)
            else
                return
            end
        end
		when 9003.chat."Minerale   (Minerals)" begin
			say_title("Minerale   (Minerals)")
            say_alb("")
            local s = select("Pietre  (Stones)", "Rafinament  (Refinement)", "X")
            if s == 1 then
				say_title("Pietre  (Stones)")
				say_alb("")
				say_alb("(Ro) Doriti sa deschideti magazinul?")
				say_alb("(En) Do you want to open the store?")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_reward("Yes > (Da) / No > (Nu)")
				say_verde2("Quest22-TEST")
				local cat = select("Da", "Nu")
				if cat == 1 then
					npc.open_shop(116)
				else
					return
				end
            else
			if s == 2 then
				say_title("Rafinament  (Refinement)")
				say_alb("")
				say_alb("(Ro) Doriti sa deschideti magazinul?")
				say_alb("(En) Do you want to open the store?")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_reward("Yes > (Da) / No > (Nu)")
				say_verde2("Quest22-TEST")
				local cat = select("Da", "Nu")
				if cat == 1 then
					npc.open_shop(117)
				else
					return
				end
			else
			if s == 3 then
				return
            end
        end
		when 9003.chat."Evolutii   (Evolution)" begin
			say_title("Evolutii   (Evolution)")
            say_alb("")
            local s = select("Categoria   V", "Categoria  IV", "Categoria III", "Categoria  II", "Categoria  I", "X")
            if s == 1 then
				say_title("Evolutie Categoria V")
				say_alb("")
				say_alb("(Ro) Doriti sa deschideti magazinul?")
				say_alb("(En) Do you want to open the store?")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_reward("Yes > (Da) / No > (Nu)")
				say_verde2("Quest22-TEST")
				local cat = select("Da", "Nu")
				if cat == 1 then
					npc.open_shop(118)
				else
					return
				end
            else
			if s == 2 then
				say_title("Evolutie Categoria IV")
				say_alb("")
				say_alb("(Ro) Doriti sa deschideti magazinul?")
				say_alb("(En) Do you want to open the store?")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_reward("Yes > (Da) / No > (Nu)")
				say_verde2("Quest22-TEST")
				local cat = select("Da", "Nu")
				if cat == 1 then
					npc.open_shop(119)
				else
					return
				end
			else
			if s == 3 then
				say_title("Evolutie Categoria III")
				say_alb("")
				say_alb("(Ro) Doriti sa deschideti magazinul?")
				say_alb("(En) Do you want to open the store?")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_reward("Yes > (Da) / No > (Nu)")
				say_verde2("Quest22-TEST")
				local cat = select("Da", "Nu")
				if cat == 1 then
					npc.open_shop(120)
				else
					return
				end
			else
			if s == 4 then
                say_title("Evolutie Categoria II")
				say_alb("")
				say_galben("(Ro)")
				say_alb("Obiectele pentru imbunatatire, din aceasta categorie,")
				say_alb("se pot dobandi prin infrangerea unor monstri sefi.")
				say_alb("(En)")
				say_alb(" You must to kill bosses to get evolution.")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_verde2("Quest22-TEST")
			else
			if s == 5 then
                say_title("Evolutie Categoria I")
				say_item_vnum("9031")
				say_galben("(Ro)")
				say_alb("Obiectele pentru imbunatatire, din aceasta categorie,")
				say_alb("se pot dobandi prin donatie sau prin participarea la")
				say_alb("anumite evenimente organizate de STAFF.")
				say_alb("(En)")
				say_alb(" The following items needed for upgrade, from this")
				say_alb("category, can be obtained through donation or from")
				say_alb("events organized by our STAFF.")
				say_alb("")
				say_alb("")
				say_alb("")
				say_verde2("Quest22-TEST")
			else
				return
            end
		end
		when 9003.chat."Comercial" begin
			say_title("Comercial")
			say_alb("")
			local s = select("Calarie  (Riding)", "Nunta  (Wedding)", "Infatisare I  (Look), "Infatisare II  (Look)", "X")
			if s == 1 then
				say_title("Calarie  (Riding)")
				say_alb("")
				say_alb("(Ro) Doriti sa deschideti magazinul?")
				say_alb("(En) Do you want to open the store?")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_reward("Yes > (Da) / No > (Nu)")
				say_verde2("Quest22-TEST")
				local cat = select("Da", "Nu")
				if cat == 1 then
					npc.open_shop(121)
				else
					return
				end
			else
			if s == 2 then
				say_title("Nunta  (Wedding)")
				say_alb("")
				say_alb("(Ro) Doriti sa deschideti magazinul?")
				say_alb("(En) Do you want to open the store?")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_reward("Yes > (Da) / No > (Nu)")
				say_verde2("Quest22-TEST")
				local cat = select("Da", "Nu")
				if cat == 1 then
					npc.open_shop(122)
				else
					return
				end
			else
			if s == 3 then
				npc.open_shop(123)
			else
			if s == 4 then
				npc.open_shop(124)
			else
				return
			end
		end
	end
end
Ma poate ajuta cineva sa-l repar? Eu nu stiu unde am gresit, imi pare totul in regula :(
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

Poftim

Cod: Selectaţi tot

-- Ai avut greseli in el de exemplu daca ai folosit functia select si adaugi 4 categorii, dupa primul if, nu se mai foloseste alt if, se foloseste sub forma,
-- "elseif" ex : primul select va incepe cu if dupa elseif toate celelalte si intre ele nu se pune end sau else , doar se continua cu celalalt elseif
-- pana ajungi la ultimul fiind "Inchide" si acolo pui sub                  elseif boogie == 5 then 
--                                                                            return
--                                                                          end -- inchide primul if si sub if urile care nu au nevoie de end.... este mai simplu
-- Ai gresit si la o linie de mai jos ca nu ai adaugat ghilimelele cum trebuie in paranteze la select se foloseste ghilimele pentru inceputul cuvantului cat si
-- pentru sfarsitul lui apoi o irgula urmata de un space si dupa iar ghilimele dupa cuvantul si inchizi gilimelele... si cand vrei sa inchizi optiunea select
-- ii pui ultimul cuvant cu ghilimele la inceputul lui cat si la sfarsit si urmat d paranteza.Este foarte simplu doar ca tu te si grabesti :))


quest MagazinulGeneral begin -- start quest
    state start begin -- start state
	
        when 9003.chat."Potiuni   (Potions)" begin
				say_title("Potiuni   (Potions)")
				say("")
				say_alb("(Ro) Doriti sa deschideti magazinul?")
				say_alb("(En) Do you want to open the store?")
				say("")
				say("")
				say_verde2("Quest22-TEST")
            local s = select("Da - Yes", "Nu - No")
            if s == 1 then
                npc.open_shop(3)
            else
                return
            end
        end
		
		
		
      when 9003.chat."Obiecte   (Objects)" begin
         say_title("Obiecte   (Objects)")
   		say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
         say_alb("(En) Do you want to open the store?")
		say("")
		say("")
		say("")
		say("")
 
         say_verde2("Quest22-TEST")
            local s = select("Da - Yes", "Nu - No")
            if s == 1 then
                npc.open_shop(115)
            else
                return
            end
        end
		
		
		
      when 9003.chat."Minerale   (Minerals)" begin
         say_title("Minerale   (Minerals)")
   		say("")
            local s = select("Pietre  (Stones)", "Rafinament  (Refinement)", "X")
            if s == 1 then
            say_title("Pietre  (Stones)")
   		say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
            say_alb("(En) Do you want to open the store?")
   		say("")
   		say("")
   		say("")
   		say("")
    
            say_verde2("Quest22-TEST")
            local cat = select("Da - Yes", "Nu - No")
            if cat == 1 then
               npc.open_shop(116)
            else
               return
            end
         elseif s == 2 then
            say_title("Rafinament  (Refinement)")
   		say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
            say_alb("(En) Do you want to open the store?")
   		say("")
   		say("")
   		say("")
   		say("")
    
            say_verde2("Quest22-TEST")
            local cat = select("Da - Yes", "Nu - No")
            if cat == 1 then
               npc.open_shop(117)
            else
               return
            end
         
         elseif s == 3 then
            return
            end
        end
		
		
		
      when 9003.chat."Evolutii   (Evolution)" begin
         say_title("Evolutii   (Evolution)")
   		say("")
            local s = select("Categoria   V", "Categoria  IV", "Categoria III", "Categoria  II", "Categoria  I", "X")
            if s == 1 then
            say_title("Evolutie Categoria V")
   		say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
            say_alb("(En) Do you want to open the store?")
   		say("")
   		say("")
   		say("")
   		say("")
    
            say_verde2("Quest22-TEST")
            local cat = select("Da - Yes", "Nu - No")
            if cat == 1 then
               npc.open_shop(118)
            else
               return
            end
         elseif s == 2 then
            say_title("Evolutie Categoria IV")
   		say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
            say_alb("(En) Do you want to open the store?")
   		say("")
   		say("")
   		say("")
   		say("")
    
            say_verde2("Quest22-TEST")
            local cat = select("Da - Yes", "Nu - No")
            if cat == 1 then
               npc.open_shop(119)
            else
               return
            end

         elseif s == 3 then
            say_title("Evolutie Categoria III")
   		say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
            say_alb("(En) Do you want to open the store?")
   		say("")
   		say("")
   		say("")
   		say("")
    
            say_verde2("Quest22-TEST")
            local cat = select("Da - Yes", "Nu - No")
            if cat == 1 then
               npc.open_shop(120)
            else
               return
            end
         elseif s == 4 then
                say_title("Evolutie Categoria II")
   		say("")
            say_galben("(Ro)")
            say_alb("Obiectele pentru imbunatatire, din aceasta categorie,")
            say_alb("se pot dobandi prin infrangerea unor monstri sefi.")
            say_alb("(En)")
            say_alb(" You must to kill bosses to get evolution.")
   		say("")
   		say("")
   		say("")
   		say("")
   		say("")
            say_verde2("Quest22-TEST")

         elseif s == 5 then
		 	say_size(450, 450) -- DIMENSIUNE  IMAGINEA PE CARE APARE SCRISUL ( LATIME SI INALTIME - 450, 450) Acolo setezi tu dimensiunea imagini respective
			addimage ( - 85 , - 90 , "002.tga" ) -- Aici nu ai treaba , e poza care si-o selecteaza din client.
            say_title("Evolutie Categoria I")
            say_item_vnum("9031")
            say_galben("(Ro)")
            say_alb("Obiectele pentru imbunatatire, din aceasta categorie,")
            say_alb("se pot dobandi prin donatie sau prin participarea la")
            say_alb("anumite evenimente organizate de STAFF.")
            say_alb("(En)")
            say_alb(" The following items needed for upgrade, from this")
            say_alb("category, can be obtained through donation or from")
            say_alb("events organized by our STAFF.")
   		say("")
   		say("")
   		say("")
            say_verde2("Quest22-TEST")
         elseif s == 6 then
            return
            end
      end
	  
	  
	  
      when 9003.chat."Comercial" begin
         say_title("Comercial")
		say("")
         local s = select("Calarie  (Riding)", "Nunta  (Wedding)", "Infatisare I  (Look)", "Infatisare II  (Look)", "X")
         if s == 1 then
            say_title("Calarie  (Riding)")
   		say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
            say_alb("(En) Do you want to open the store?")
   		say("")
   		say("")
   		say("")
   		say("")
    
            say_verde2("Quest22-TEST")
            local cat = select("Da - Yes", "Nu - No")
            if cat == 1 then
               npc.open_shop(121)
            else
               return
            end
         elseif s == 2 then
            say_title("Nunta  (Wedding)")
   		say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
            say_alb("(En) Do you want to open the store?")
   		say("")
   		say("")
   		say("")
   		say("")
    
            say_verde2("Quest22-TEST")
            local cat = select("Da - Yes", "Nu - No")
            if cat == 1 then
               npc.open_shop(122)
            else
               return
            end
         elseif s == 3 then
            npc.open_shop(123)
         elseif s == 4 then
            npc.open_shop(124)
         elseif s == 5 then
            return
         end
      end
	  
	  
   end -- end state
end -- end quest
Daca nu iti da optiunea sa alegi daca vrei sa deschizi sau nu magazinul, trebuie sa stergi acel :

Cod: Selectaţi tot

				say_verde2("Quest22-TEST")
Tu daca ai "verde2" pe server bagat in questfunctions si e functional, nu trebuie sa mai modifici absolut nimic la el .
Eu nu detin verde2 la culori si nu am stat ca sa il implementez in functii , l am scos ca sa vad daca functioneaza si e totul ok ... doar shop urile sa ti le pui bine si sa ti le faci bine, dupa ce scot functia cu verde2 imi apare sa aleg da sau nu. Bafta.

Ti am adaugat o functie care o poti folosi inainte de orice say, se pune pentru a face imagine ce contine textul dorit mai mare si ca sa poti extidne mesajul informativ din casuta aia .... o ajustezi dupa scris . O ai inainte de acel say_item_vnum("9031") ai si o explicatie a lui acolo .
Pentru acest mesaj, eubogdanel2018 for the post:
t4zu
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

eubogdanel2018 scrie:Poftim

Cod: Selectaţi tot

-- Ai avut greseli in el de exemplu daca ai folosit functia select si adaugi 4 categorii, dupa primul if, nu se mai foloseste alt if, se foloseste sub forma,
-- "elseif" ex : primul select va incepe cu if dupa elseif toate celelalte si intre ele nu se pune end sau else , doar se continua cu celalalt elseif
-- pana ajungi la ultimul fiind "Inchide" si acolo pui sub                  elseif boogie == 5 then 
--                                                                            return
--                                                                          end -- inchide primul if si sub if urile care nu au nevoie de end.... este mai simplu
-- Ai gresit si la o linie de mai jos ca nu ai adaugat ghilimelele cum trebuie in paranteze la select se foloseste ghilimele pentru inceputul cuvantului cat si
-- pentru sfarsitul lui apoi o irgula urmata de un space si dupa iar ghilimele dupa cuvantul si inchizi gilimelele... si cand vrei sa inchizi optiunea select
-- ii pui ultimul cuvant cu ghilimele la inceputul lui cat si la sfarsit si urmat d paranteza.Este foarte simplu doar ca tu te si grabesti :))


quest MagazinulGeneral begin -- start quest
    state start begin -- start state
	
        when 9003.chat."Potiuni   (Potions)" begin
				say_title("Potiuni   (Potions)")
				say("")
				say_alb("(Ro) Doriti sa deschideti magazinul?")
				say_alb("(En) Do you want to open the store?")
				say("")
				say("")
				say_verde2("Quest22-TEST")
            local s = select("Da - Yes", "Nu - No")
            if s == 1 then
                npc.open_shop(3)
            else
                return
            end
        end
		
		
		
      when 9003.chat."Obiecte   (Objects)" begin
         say_title("Obiecte   (Objects)")
   		say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
         say_alb("(En) Do you want to open the store?")
		say("")
		say("")
		say("")
		say("")
 
         say_verde2("Quest22-TEST")
            local s = select("Da - Yes", "Nu - No")
            if s == 1 then
                npc.open_shop(115)
            else
                return
            end
        end
		
		
		
      when 9003.chat."Minerale   (Minerals)" begin
         say_title("Minerale   (Minerals)")
   		say("")
            local s = select("Pietre  (Stones)", "Rafinament  (Refinement)", "X")
            if s == 1 then
            say_title("Pietre  (Stones)")
   		say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
            say_alb("(En) Do you want to open the store?")
   		say("")
   		say("")
   		say("")
   		say("")
    
            say_verde2("Quest22-TEST")
            local cat = select("Da - Yes", "Nu - No")
            if cat == 1 then
               npc.open_shop(116)
            else
               return
            end
         elseif s == 2 then
            say_title("Rafinament  (Refinement)")
   		say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
            say_alb("(En) Do you want to open the store?")
   		say("")
   		say("")
   		say("")
   		say("")
    
            say_verde2("Quest22-TEST")
            local cat = select("Da - Yes", "Nu - No")
            if cat == 1 then
               npc.open_shop(117)
            else
               return
            end
         
         elseif s == 3 then
            return
            end
        end
		
		
		
      when 9003.chat."Evolutii   (Evolution)" begin
         say_title("Evolutii   (Evolution)")
   		say("")
            local s = select("Categoria   V", "Categoria  IV", "Categoria III", "Categoria  II", "Categoria  I", "X")
            if s == 1 then
            say_title("Evolutie Categoria V")
   		say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
            say_alb("(En) Do you want to open the store?")
   		say("")
   		say("")
   		say("")
   		say("")
    
            say_verde2("Quest22-TEST")
            local cat = select("Da - Yes", "Nu - No")
            if cat == 1 then
               npc.open_shop(118)
            else
               return
            end
         elseif s == 2 then
            say_title("Evolutie Categoria IV")
   		say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
            say_alb("(En) Do you want to open the store?")
   		say("")
   		say("")
   		say("")
   		say("")
    
            say_verde2("Quest22-TEST")
            local cat = select("Da - Yes", "Nu - No")
            if cat == 1 then
               npc.open_shop(119)
            else
               return
            end

         elseif s == 3 then
            say_title("Evolutie Categoria III")
   		say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
            say_alb("(En) Do you want to open the store?")
   		say("")
   		say("")
   		say("")
   		say("")
    
            say_verde2("Quest22-TEST")
            local cat = select("Da - Yes", "Nu - No")
            if cat == 1 then
               npc.open_shop(120)
            else
               return
            end
         elseif s == 4 then
                say_title("Evolutie Categoria II")
   		say("")
            say_galben("(Ro)")
            say_alb("Obiectele pentru imbunatatire, din aceasta categorie,")
            say_alb("se pot dobandi prin infrangerea unor monstri sefi.")
            say_alb("(En)")
            say_alb(" You must to kill bosses to get evolution.")
   		say("")
   		say("")
   		say("")
   		say("")
   		say("")
            say_verde2("Quest22-TEST")

         elseif s == 5 then
		 	say_size(450, 450) -- DIMENSIUNE  IMAGINEA PE CARE APARE SCRISUL ( LATIME SI INALTIME - 450, 450) Acolo setezi tu dimensiunea imagini respective
			addimage ( - 85 , - 90 , "002.tga" ) -- Aici nu ai treaba , e poza care si-o selecteaza din client.
            say_title("Evolutie Categoria I")
            say_item_vnum("9031")
            say_galben("(Ro)")
            say_alb("Obiectele pentru imbunatatire, din aceasta categorie,")
            say_alb("se pot dobandi prin donatie sau prin participarea la")
            say_alb("anumite evenimente organizate de STAFF.")
            say_alb("(En)")
            say_alb(" The following items needed for upgrade, from this")
            say_alb("category, can be obtained through donation or from")
            say_alb("events organized by our STAFF.")
   		say("")
   		say("")
   		say("")
            say_verde2("Quest22-TEST")
         elseif s == 6 then
            return
            end
      end
	  
	  
	  
      when 9003.chat."Comercial" begin
         say_title("Comercial")
		say("")
         local s = select("Calarie  (Riding)", "Nunta  (Wedding)", "Infatisare I  (Look)", "Infatisare II  (Look)", "X")
         if s == 1 then
            say_title("Calarie  (Riding)")
   		say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
            say_alb("(En) Do you want to open the store?")
   		say("")
   		say("")
   		say("")
   		say("")
    
            say_verde2("Quest22-TEST")
            local cat = select("Da - Yes", "Nu - No")
            if cat == 1 then
               npc.open_shop(121)
            else
               return
            end
         elseif s == 2 then
            say_title("Nunta  (Wedding)")
   		say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
            say_alb("(En) Do you want to open the store?")
   		say("")
   		say("")
   		say("")
   		say("")
    
            say_verde2("Quest22-TEST")
            local cat = select("Da - Yes", "Nu - No")
            if cat == 1 then
               npc.open_shop(122)
            else
               return
            end
         elseif s == 3 then
            npc.open_shop(123)
         elseif s == 4 then
            npc.open_shop(124)
         elseif s == 5 then
            return
         end
      end
	  
	  
   end -- end state
end -- end quest
Daca nu iti da optiunea sa alegi daca vrei sa deschizi sau nu magazinul, trebuie sa stergi acel :

Cod: Selectaţi tot

				say_verde2("Quest22-TEST")
Tu daca ai "verde2" pe server bagat in questfunctions si e functional, nu trebuie sa mai modifici absolut nimic la el .
Eu nu detin verde2 la culori si nu am stat ca sa il implementez in functii , l am scos ca sa vad daca functioneaza si e totul ok ... doar shop urile sa ti le pui bine si sa ti le faci bine, dupa ce scot functia cu verde2 imi apare sa aleg da sau nu. Bafta.

Ti am adaugat o functie care o poti folosi inainte de orice say, se pune pentru a face imagine ce contine textul dorit mai mare si ca sa poti extidne mesajul informativ din casuta aia .... o ajustezi dupa scris . O ai inainte de acel say_item_vnum("9031") ai si o explicatie a lui acolo .
Salut, iti multumesc ca m-ai ajutat, insa dupa modificarile pe care le-am facut, imi apare asta:

Cod: Selectaţi tot

Segmentation fault (core dumped)
... cel mai bine iti dau un link cu questul original (Dupa modificarile facute de tine), unde se tine cont de tab-uri si altele, poftim:
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

tin sa te anunt ca eu am folosit quest ul asta modificat de mine pe sv meu de teste si mi a rulat fara nici o eroare. ai modificat ceva in el? nu au tab urile treaba cu functiile care sunt aici
trimite quest ul modificat de mine si dupa el ala care l ai facut tu dupa modelul meu.
imi spui ce ai adaugat sau modificat in el
pune sub forma de code ca sunt pe telefon s sunt la munca.
[ Postat de pe Android ] Imagine
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

eubogdanel2018 scrie:tin sa te anunt ca eu am folosit quest ul asta modificat de mine pe sv meu de teste si mi a rulat fara nici o eroare. ai modificat ceva in el? nu au tab urile treaba cu functiile care sunt aici
trimite quest ul modificat de mine si dupa el ala care l ai facut tu dupa modelul meu.
imi spui ce ai adaugat sau modificat in el
pune sub forma de code ca sunt pe telefon s sunt la munca.
[ Postat de pe Android ] Imagine
Ok, mersi.
Modificari:
*La rubrica -> "Comercial", erau magazinele cu deschidere directa. Am pus o pagina de text inainte de deschiddere, asemanatoare celor de la "Nunta" si "Calarie" (de acolo le-am luat cu copy-paste);
*Am pus taburi, ca sa fie aliniate corespunzator;
*Am eliminat randurile libere;

New Quest code:

Cod: Selectaţi tot

quest MagazinulGeneral begin
	state start begin
		when 9003.chat."Potiuni   (Potions)" begin
			say_title("Potiuni   (Potions)")
			say("")
			say("(Ro) Doriti sa deschideti magazinul?")
			say("(En) Do you want to open the store?")
			say("")
			say("")
			say("")
			say("")
			say_verde2("QuestMagazinGeneral")
			local s = select("Da <-> Yes", "Nu <-> No")
			if s == 1 then
				npc.open_shop(3)
			else
				return
			end
		end
		when 9003.chat."Obiecte   (Objects)" begin
			say_title("Obiecte   (Objects)")
			say("")
			say("(Ro) Doriti sa deschideti magazinul?")
			say("(En) Do you want to open the store?")
			say("")
			say("")
			say("")
			say("")
			say_verde2("QuestMagazinGeneral")
			local s = select("Da <-> Yes", "Nu <-> No")
			if s == 1 then
				npc.open_shop(115)
			else
				return
			end
		end
		when 9003.chat."Minerale   (Minerals)" begin
			say_title("Minerale   (Minerals)")
			say("")
			local s = select("Pietre  (Stones)", "Rafinament  (Refinement)", "X")
			if s == 1 then
				say_title("Pietre  (Stones)")
				say("")
				say("(Ro) Doriti sa deschideti magazinul?")
				say("(En) Do you want to open the store?")
				say("")
				say("")
				say("")
				say("")
				say_verde2("QuestMagazinGeneral")
				local cat = select("Da -> Yes", "Nu -> No")
				if cat == 1 then
					npc.open_shop(116)
				else
					return
			end
			elseif s == 2 then
				say_title("Rafinament  (Refinement)")
				say("")
				say("(Ro) Doriti sa deschideti magazinul?")
				say("(En) Do you want to open the store?")
				say("")
				say("")
				say("")
				say("")
				say_verde2("QuestMagazinGeneral")
				local cat = select("Da  <->  Yes", "Nu  <->  No")
				if cat == 1 then
					npc.open_shop(117)
				else
					return
			end
			elseif s == 3 then
				return
			end
		end
		when 9003.chat."Evolutii   (Evolution)" begin
			say_title("Evolutii   (Evolution)")
			say("")
			local s = select("Categoria   V", "Categoria  IV", "Categoria III", "Categoria  II", "Categoria  I", "X")
			if s == 1 then
				say_title("Evolutie Categoria V")
				say("")
				say("(Ro) Doriti sa deschideti magazinul?")
				say("(En) Do you want to open the store?")
				say("")
				say("")
				say("")
				say("")
				say_verde2("QuestMagazinGeneral")
				local cat = select("Da  <->  Yes", "Nu  <->  No")
				if cat == 1 then
					npc.open_shop(118)
				else
					return
				end
			elseif s == 2 then
				say_title("Evolutie Categoria IV")
				say("")
				say_alb("(Ro) Doriti sa deschideti magazinul?")
				say_alb("(En) Do you want to open the store?")
				say("")
				say("")
				say("")
				say("")
				say_verde2("QuestMagazinGeneral")
				local cat = select("Da  <->  Yes", "Nu  <->  No")
				if cat == 1 then
					npc.open_shop(119)
				else
					return
				end
			elseif s == 3 then
				say_title("Evolutie Categoria III")
				say("")
				say("(Ro) Doriti sa deschideti magazinul?")
				say("(En) Do you want to open the store?")
				say("")
				say("")
				say("")
				say("")
				say_verde2("QuestMagazinGeneral")
				local cat = select("Da  <->  Yes", "Nu  <->  No")
				if cat == 1 then
					npc.open_shop(120)
				else
					return
				end
			elseif s == 4 then
				say_title("Evolutie Categoria II")
				say("")
				say_galben("(Ro)")
				say("Obiectele pentru imbunatatire, din aceasta categorie,")
				say("se pot dobandi prin infrangerea unor monstri sefi.")
				say("(En)")
				say(" You must to kill bosses to get evolution.")
				say("")
				say("")
				say("")
				say("")
				say_verde2("QuestMagazinGeneral")
			elseif s == 5 then
				-- say_size(450, 450) -- DIMENSIUNE  IMAGINEA PE CARE APARE SCRISUL ( LATIME SI INALTIME - 450, 450) Acolo setezi tu dimensiunea imagini respective
				-- addimage ( - 85 , - 90 , "002.tga" ) -- Aici nu ai treaba , e poza care si-o selecteaza din client.
				say_title("Evolutie Categoria I")
				say_item_vnum("9031")
				say_galben("(Ro)")
				say_alb("Obiectele pentru imbunatatire, din aceasta categorie,")
				say("se pot dobandi prin donatie sau prin participarea la")
				say("anumite evenimente organizate de STAFF.")
				say_galben("(En)")
				say_alb(" The following items needed for upgrade, from this")
				say("category, can be obtained through donation or from")
				say("events organized by our STAFF.")
				say("")
				say_verde2("QuestMagazinGeneral")
			elseif s == 6 then
				return
			end
		end
		when 9003.chat."Comercial" begin
		say_title("Comercial")
		say("")
		local s = select("Calarie  (Riding)", "Nunta  (Wedding)", "Accesorii  (Accessory)", "Eveniment  (Event)", "X")
		if s == 1 then
			say_title("Calarie  (Riding)")
			say("")
			say_alb("(Ro) Doriti sa deschideti magazinul?")
			say("(En) Do you want to open the store?")
			say("")
			say("")
			say("")
			say("")
			say_verde2("QuestMagazinGeneral")
			local cat = select("Da  <->  Yes", "Nu  <->  No")
			if cat == 1 then
				npc.open_shop(121)
			else
				return
			end
		elseif s == 2 then
			say_title("Nunta  (Wedding)")
			say("")
			say_alb("(Ro) Doriti sa deschideti magazinul?")
			say("(En) Do you want to open the store?")
			say("")
			say("")
			say("")
			say("")
			say_verde2("QuestMagazinGeneral")
			local cat = select("Da  <->  Yes", "Nu  <->  No")
			if cat == 1 then
				npc.open_shop(122)
			else
				return
			end
		elseif s == 3 then
			say_title("Accesorii  (Accessory)")
			say("")
			say_alb("(Ro) Doriti sa deschideti magazinul?")
			say("(En) Do you want to open the store?")
			say("")
			say("")
			say("")
			say("")
			say_verde2("QuestMagazinGeneral")
			local cat = select("Da  <->  Yes", "Nu  <->  No")
			if cat == 1 then
			npc.open_shop(123)
			else
				return
			end
		elseif s == 4 then
			say_title("Eveniment  (Event)")
			say("")
			say_reward("(Ro) Psss... Daca doresti sa afli unele dintre")
			say_reward("secretele jocului, trebuie sa mergi in temnita")
			say_reward("maimutelor de categorie usoara si sa accesezi")
			say_reward("monumentul de piatra.")
			say_reward("(En) Pssss... If you want to find some secrets")
			say_reward("of the game, you need to go in dungeon monkeys")
			say_reward("and access the stone monument.")
			say_verde2("QuestMagazinGeneral")
			local cat = select("Magazin  <->  Shop", "X")
			if cat == 1 then
				npc.open_shop(124)
		elseif s == 5 then
			return
			end
		end
	end
end 
=>Acest quest l-am pus si acolo la download, deci e tot acelasi.
Apreciez munca ta.
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

imi cer scuze pentru atatea comentarii dar vreau ca sa te atentionez ca mi ai atras atebtia cu ceva! eu ti am pus acele randuri intre ele ca sa le ai ordonate si sa nu te incurci in ele ca asa iti faci munca mai usoara si la ultimele 2 end uri sunt de la inceputul quest ului ca sa incheie quest ul si de la state, ele nu trebuie sa fi e imediat dupa cele 2 de la ultimul when si if ca ai avea 4 si poate te incurci, asa sti de la fiecare cum e .... e mai usor pentru tine. nu am citit inca quest ul , il citesc imediat!

[ Postat de pe Android ] Imagine
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

nu vad nici o pagina cu text la comercial.... ai direct un say("") dupa selectia acelor magazine cu calarie, nunta, etc... mai explicit? exact ce ai scris si unde ?
mai bine spui ce text vrei si unde mai exact ... ti le pun eu ca sa nu mai ai prpbleme la ala bun modificat de mine.
edit: le am gasit, poftim.

Cod: Selectaţi tot

quest MagazinulGeneral begin -- start quest
    state start begin -- start state
   
        when 9003.chat."Potiuni   (Potions)" begin
            say_title("Potiuni   (Potions)")
            say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
            say_alb("(En) Do you want to open the store?")
            say("")
            say("")
            say_verde2("Quest22-TEST")
            local s = select("Da - Yes", "Nu - No")
            if s == 1 then
                npc.open_shop(3)
            else
                return
            end
        end
      
      
      
      when 9003.chat."Obiecte   (Objects)" begin
         say_title("Obiecte   (Objects)")
         say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
         say_alb("(En) Do you want to open the store?")
      say("")
      say("")
      say("")
      say("")
 
         say_verde2("Quest22-TEST")
            local s = select("Da - Yes", "Nu - No")
            if s == 1 then
                npc.open_shop(115)
            else
                return
            end
        end
      
      
      
      when 9003.chat."Minerale   (Minerals)" begin
         say_title("Minerale   (Minerals)")
         say("")
            local s = select("Pietre  (Stones)", "Rafinament  (Refinement)", "X")
            if s == 1 then
            say_title("Pietre  (Stones)")
         say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
            say_alb("(En) Do you want to open the store?")
         say("")
         say("")
         say("")
         say("")
    
            say_verde2("Quest22-TEST")
            local cat = select("Da - Yes", "Nu - No")
            if cat == 1 then
               npc.open_shop(116)
            else
               return
            end
         elseif s == 2 then
            say_title("Rafinament  (Refinement)")
         say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
            say_alb("(En) Do you want to open the store?")
         say("")
         say("")
         say("")
         say("")
    
            say_verde2("Quest22-TEST")
            local cat = select("Da - Yes", "Nu - No")
            if cat == 1 then
               npc.open_shop(117)
            else
               return
            end
         
         elseif s == 3 then
            return
            end
        end
      
      
      
      when 9003.chat."Evolutii   (Evolution)" begin
         say_title("Evolutii   (Evolution)")
         say("")
            local s = select("Categoria   V", "Categoria  IV", "Categoria III", "Categoria  II", "Categoria  I", "X")
            if s == 1 then
            say_title("Evolutie Categoria V")
         say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
            say_alb("(En) Do you want to open the store?")
         say("")
         say("")
         say("")
         say("")
    
            say_verde2("Quest22-TEST")
            local cat = select("Da - Yes", "Nu - No")
            if cat == 1 then
               npc.open_shop(118)
            else
               return
            end
         elseif s == 2 then
            say_title("Evolutie Categoria IV")
         say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
            say_alb("(En) Do you want to open the store?")
         say("")
         say("")
         say("")
         say("")
    
            say_verde2("Quest22-TEST")
            local cat = select("Da - Yes", "Nu - No")
            if cat == 1 then
               npc.open_shop(119)
            else
               return
            end

         elseif s == 3 then
            say_title("Evolutie Categoria III")
         say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
            say_alb("(En) Do you want to open the store?")
         say("")
         say("")
         say("")
         say("")
    
            say_verde2("Quest22-TEST")
            local cat = select("Da - Yes", "Nu - No")
            if cat == 1 then
               npc.open_shop(120)
            else
               return
            end
         elseif s == 4 then
                say_title("Evolutie Categoria II")
         say("")
            say_galben("(Ro)")
            say_alb("Obiectele pentru imbunatatire, din aceasta categorie,")
            say_alb("se pot dobandi prin infrangerea unor monstri sefi.")
            say_alb("(En)")
            say_alb(" You must to kill bosses to get evolution.")
         say("")
         say("")
         say("")
         say("")
         say("")
            say_verde2("Quest22-TEST")

         elseif s == 5 then
          say_size(450, 450) -- DIMENSIUNE  IMAGINEA PE CARE APARE SCRISUL ( LATIME SI INALTIME - 450, 450) Acolo setezi tu dimensiunea imagini respective
         addimage ( - 85 , - 90 , "002.tga" ) -- Aici nu ai treaba , e poza care si-o selecteaza din client.
            say_title("Evolutie Categoria I")
            say_item_vnum("9031")
            say_galben("(Ro)")
            say_alb("Obiectele pentru imbunatatire, din aceasta categorie,")
            say_alb("se pot dobandi prin donatie sau prin participarea la")
            say_alb("anumite evenimente organizate de STAFF.")
            say_alb("(En)")
            say_alb(" The following items needed for upgrade, from this")
            say_alb("category, can be obtained through donation or from")
            say_alb("events organized by our STAFF.")
         say("")
         say("")
         say("")
            say_verde2("Quest22-TEST")
         elseif s == 6 then
            return
            end
      end
     
     
     
      when 9003.chat."Comercial" begin
         say_title("Comercial")
      say("")
         local s = select("Calarie  (Riding)", "Nunta  (Wedding)", "Infatisare I  (Look)", "Infatisare II  (Look)", "X")
         if s == 1 then
            say_title("Calarie  (Riding)")
         say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
            say_alb("(En) Do you want to open the store?")
         say("")
         say("")
         say("")
         say("")
    
            say_verde2("Quest22-TEST")
            local cat = select("Da - Yes", "Nu - No")
            if cat == 1 then
               npc.open_shop(121)
            else
               return
            end
         elseif s == 2 then
            say_title("Nunta  (Wedding)")
         say("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
            say_alb("(En) Do you want to open the store?")
         say("")
         say("")
         say("")
         say("")
    
            say_verde2("Quest22-TEST")
            local cat = select("Da - Yes", "Nu - No")
            if cat == 1 then
               npc.open_shop(122)
            else
               return
            end
         elseif s == 3 then
         say_title("Accesorii  (Accessory)")
         say("")
         say_alb("(Ro) Doriti sa deschideti magazinul?")
         say("(En) Do you want to open the store?")
         say("")
         say("")
         say("")
         say("")
         say_verde2("QuestMagazinGeneral")
local cat = select("Da - Yes", "Nu - No")
            if cat == 1 then
               npc.open_shop(123)
            else
               return
            end
         elseif s == 4 then
         say_title("Eveniment  (Event)")
         say("")
         say_reward("(Ro) Psss... Daca doresti sa afli unele dintre")
         say_reward("secretele jocului, trebuie sa mergi in temnita")
         say_reward("maimutelor de categorie usoara si sa accesezi")
         say_reward("monumentul de piatra.")
         say_reward("(En) Pssss... If you want to find some secrets")
         say_reward("of the game, you need to go in dungeon monkeys")
         say_reward("and access the stone monument.")
         say_verde2("QuestMagazinGeneral")
local cat = select("Da - Yes", "Nu - No")
            if cat == 1 then
               npc.open_shop(124)
            else
               return
            end
               
         elseif s == 5 then
            return
         end
      end
     
     
   end -- end state
end -- end quest
Cand rulezi quest ul si da segmentation fault vezi ca ai gresit numele la quest la ./qc nume_quest.quest
sa verifici cand dai rulare in putty.
[ Postat de pe Android ] Imagine
Avatar utilizator
Braxy
Quest Creator

Quest Creator
Mesaje: 293
Membru din: 04 Mai 2016, 17:13
Regat: Jinno
Aprecieri: 7  
Mulţumiri: 228  
Medalii

t4zu scrie:*Problemă: Nu imi pot face questul sa functioneze
Tipologie server: test
*Resursă folosită: -
*s utilizat: -
*Syserr: Nu exista (fara CoreDumped)
Poză: -
*Detalii suplimentare: Mi-am facut un quest pentru magazinul general, dar nu functioneaza si nu da nici eroare sau kill, se incarca doar pentru:

Cod: Selectaţi tot

QUEST : MagazinulGeneral
STATE : start
WHEN  : 9003.chat ("Potiuni   (Potions)")
WHEN  : 9003.chat ("Obiecte   (Objects)")
WHEN  : 9003.chat ("Minerale   (Minerals)")
Quest:

Cod: Selectaţi tot

quest MagazinulGeneral begin
    state start begin
        when 9003.chat."Potiuni   (Potions)" begin
			say_title("Potiuni   (Potions)")
            say_alb("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
			say_alb("(En) Do you want to open the store?")
			say_alb("")
			say_alb("")
			say_alb("")
			say_alb("")
			say_reward("Yes > (Da) / No > (Nu)")
			say_verde2("Quest22-TEST")
            local s = select("Da", "Nu")
            if s == 1 then
                npc.open_shop(3)
            else
                return
            end
        end
		when 9003.chat."Obiecte   (Objects)" begin
			say_title("Obiecte   (Objects)")
            say_alb("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
			say_alb("(En) Do you want to open the store?")
			say_alb("")
			say_alb("")
			say_alb("")
			say_alb("")
			say_reward("Yes > (Da) / No > (Nu)")
			say_verde2("Quest22-TEST")
            local s = select("Da", "Nu")
            if s == 1 then
                npc.open_shop(115)
            else
                return
            end
        end
		when 9003.chat."Minerale   (Minerals)" begin
			say_title("Minerale   (Minerals)")
            say_alb("")
            local s = select("Pietre  (Stones)", "Rafinament  (Refinement)", "X")
            if s == 1 then
				say_title("Pietre  (Stones)")
				say_alb("")
				say_alb("(Ro) Doriti sa deschideti magazinul?")
				say_alb("(En) Do you want to open the store?")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_reward("Yes > (Da) / No > (Nu)")
				say_verde2("Quest22-TEST")
				local cat = select("Da", "Nu")
				if cat == 1 then
					npc.open_shop(116)
				else
					return
				end
            else
			if s == 2 then
				say_title("Rafinament  (Refinement)")
				say_alb("")
				say_alb("(Ro) Doriti sa deschideti magazinul?")
				say_alb("(En) Do you want to open the store?")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_reward("Yes > (Da) / No > (Nu)")
				say_verde2("Quest22-TEST")
				local cat = select("Da", "Nu")
				if cat == 1 then
					npc.open_shop(117)
				else
					return
				end
			else
			if s == 3 then
				return
            end
        end
		when 9003.chat."Evolutii   (Evolution)" begin
			say_title("Evolutii   (Evolution)")
            say_alb("")
            local s = select("Categoria   V", "Categoria  IV", "Categoria III", "Categoria  II", "Categoria  I", "X")
            if s == 1 then
				say_title("Evolutie Categoria V")
				say_alb("")
				say_alb("(Ro) Doriti sa deschideti magazinul?")
				say_alb("(En) Do you want to open the store?")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_reward("Yes > (Da) / No > (Nu)")
				say_verde2("Quest22-TEST")
				local cat = select("Da", "Nu")
				if cat == 1 then
					npc.open_shop(118)
				else
					return
				end
            else
			if s == 2 then
				say_title("Evolutie Categoria IV")
				say_alb("")
				say_alb("(Ro) Doriti sa deschideti magazinul?")
				say_alb("(En) Do you want to open the store?")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_reward("Yes > (Da) / No > (Nu)")
				say_verde2("Quest22-TEST")
				local cat = select("Da", "Nu")
				if cat == 1 then
					npc.open_shop(119)
				else
					return
				end
			else
			if s == 3 then
				say_title("Evolutie Categoria III")
				say_alb("")
				say_alb("(Ro) Doriti sa deschideti magazinul?")
				say_alb("(En) Do you want to open the store?")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_reward("Yes > (Da) / No > (Nu)")
				say_verde2("Quest22-TEST")
				local cat = select("Da", "Nu")
				if cat == 1 then
					npc.open_shop(120)
				else
					return
				end
			else
			if s == 4 then
                say_title("Evolutie Categoria II")
				say_alb("")
				say_galben("(Ro)")
				say_alb("Obiectele pentru imbunatatire, din aceasta categorie,")
				say_alb("se pot dobandi prin infrangerea unor monstri sefi.")
				say_alb("(En)")
				say_alb(" You must to kill bosses to get evolution.")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_verde2("Quest22-TEST")
			else
			if s == 5 then
                say_title("Evolutie Categoria I")
				say_item_vnum("9031")
				say_galben("(Ro)")
				say_alb("Obiectele pentru imbunatatire, din aceasta categorie,")
				say_alb("se pot dobandi prin donatie sau prin participarea la")
				say_alb("anumite evenimente organizate de STAFF.")
				say_alb("(En)")
				say_alb(" The following items needed for upgrade, from this")
				say_alb("category, can be obtained through donation or from")
				say_alb("events organized by our STAFF.")
				say_alb("")
				say_alb("")
				say_alb("")
				say_verde2("Quest22-TEST")
			else
				return
            end
		end
		when 9003.chat."Comercial" begin
			say_title("Comercial")
			say_alb("")
			local s = select("Calarie  (Riding)", "Nunta  (Wedding)", "Infatisare I  (Look), "Infatisare II  (Look)", "X")
			if s == 1 then
				say_title("Calarie  (Riding)")
				say_alb("")
				say_alb("(Ro) Doriti sa deschideti magazinul?")
				say_alb("(En) Do you want to open the store?")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_reward("Yes > (Da) / No > (Nu)")
				say_verde2("Quest22-TEST")
				local cat = select("Da", "Nu")
				if cat == 1 then
					npc.open_shop(121)
				else
					return
				end
			else
			if s == 2 then
				say_title("Nunta  (Wedding)")
				say_alb("")
				say_alb("(Ro) Doriti sa deschideti magazinul?")
				say_alb("(En) Do you want to open the store?")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_reward("Yes > (Da) / No > (Nu)")
				say_verde2("Quest22-TEST")
				local cat = select("Da", "Nu")
				if cat == 1 then
					npc.open_shop(122)
				else
					return
				end
			else
			if s == 3 then
				npc.open_shop(123)
			else
			if s == 4 then
				npc.open_shop(124)
			else
				return
			end
		end
	end
end
Ma poate ajuta cineva sa-l repar? Eu nu stiu unde am gresit, imi pare totul in regula :(
Poftim:

Daca vrei ceva de calitate: http://just4metin.ro/mica-publicitate/s ... 68473.html
Pentru acest mesaj, Braxy for the post:
t4zu
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

iBraxy scrie:
t4zu scrie:*Problemă: Nu imi pot face questul sa functioneze
Tipologie server: test
*Resursă folosită: -
*s utilizat: -
*Syserr: Nu exista (fara CoreDumped)
Poză: -
*Detalii suplimentare: Mi-am facut un quest pentru magazinul general, dar nu functioneaza si nu da nici eroare sau kill, se incarca doar pentru:

Cod: Selectaţi tot

QUEST : MagazinulGeneral
STATE : start
WHEN  : 9003.chat ("Potiuni   (Potions)")
WHEN  : 9003.chat ("Obiecte   (Objects)")
WHEN  : 9003.chat ("Minerale   (Minerals)")
Quest:

Cod: Selectaţi tot

quest MagazinulGeneral begin
    state start begin
        when 9003.chat."Potiuni   (Potions)" begin
			say_title("Potiuni   (Potions)")
            say_alb("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
			say_alb("(En) Do you want to open the store?")
			say_alb("")
			say_alb("")
			say_alb("")
			say_alb("")
			say_reward("Yes > (Da) / No > (Nu)")
			say_verde2("Quest22-TEST")
            local s = select("Da", "Nu")
            if s == 1 then
                npc.open_shop(3)
            else
                return
            end
        end
		when 9003.chat."Obiecte   (Objects)" begin
			say_title("Obiecte   (Objects)")
            say_alb("")
            say_alb("(Ro) Doriti sa deschideti magazinul?")
			say_alb("(En) Do you want to open the store?")
			say_alb("")
			say_alb("")
			say_alb("")
			say_alb("")
			say_reward("Yes > (Da) / No > (Nu)")
			say_verde2("Quest22-TEST")
            local s = select("Da", "Nu")
            if s == 1 then
                npc.open_shop(115)
            else
                return
            end
        end
		when 9003.chat."Minerale   (Minerals)" begin
			say_title("Minerale   (Minerals)")
            say_alb("")
            local s = select("Pietre  (Stones)", "Rafinament  (Refinement)", "X")
            if s == 1 then
				say_title("Pietre  (Stones)")
				say_alb("")
				say_alb("(Ro) Doriti sa deschideti magazinul?")
				say_alb("(En) Do you want to open the store?")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_reward("Yes > (Da) / No > (Nu)")
				say_verde2("Quest22-TEST")
				local cat = select("Da", "Nu")
				if cat == 1 then
					npc.open_shop(116)
				else
					return
				end
            else
			if s == 2 then
				say_title("Rafinament  (Refinement)")
				say_alb("")
				say_alb("(Ro) Doriti sa deschideti magazinul?")
				say_alb("(En) Do you want to open the store?")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_reward("Yes > (Da) / No > (Nu)")
				say_verde2("Quest22-TEST")
				local cat = select("Da", "Nu")
				if cat == 1 then
					npc.open_shop(117)
				else
					return
				end
			else
			if s == 3 then
				return
            end
        end
		when 9003.chat."Evolutii   (Evolution)" begin
			say_title("Evolutii   (Evolution)")
            say_alb("")
            local s = select("Categoria   V", "Categoria  IV", "Categoria III", "Categoria  II", "Categoria  I", "X")
            if s == 1 then
				say_title("Evolutie Categoria V")
				say_alb("")
				say_alb("(Ro) Doriti sa deschideti magazinul?")
				say_alb("(En) Do you want to open the store?")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_reward("Yes > (Da) / No > (Nu)")
				say_verde2("Quest22-TEST")
				local cat = select("Da", "Nu")
				if cat == 1 then
					npc.open_shop(118)
				else
					return
				end
            else
			if s == 2 then
				say_title("Evolutie Categoria IV")
				say_alb("")
				say_alb("(Ro) Doriti sa deschideti magazinul?")
				say_alb("(En) Do you want to open the store?")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_reward("Yes > (Da) / No > (Nu)")
				say_verde2("Quest22-TEST")
				local cat = select("Da", "Nu")
				if cat == 1 then
					npc.open_shop(119)
				else
					return
				end
			else
			if s == 3 then
				say_title("Evolutie Categoria III")
				say_alb("")
				say_alb("(Ro) Doriti sa deschideti magazinul?")
				say_alb("(En) Do you want to open the store?")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_reward("Yes > (Da) / No > (Nu)")
				say_verde2("Quest22-TEST")
				local cat = select("Da", "Nu")
				if cat == 1 then
					npc.open_shop(120)
				else
					return
				end
			else
			if s == 4 then
                say_title("Evolutie Categoria II")
				say_alb("")
				say_galben("(Ro)")
				say_alb("Obiectele pentru imbunatatire, din aceasta categorie,")
				say_alb("se pot dobandi prin infrangerea unor monstri sefi.")
				say_alb("(En)")
				say_alb(" You must to kill bosses to get evolution.")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_verde2("Quest22-TEST")
			else
			if s == 5 then
                say_title("Evolutie Categoria I")
				say_item_vnum("9031")
				say_galben("(Ro)")
				say_alb("Obiectele pentru imbunatatire, din aceasta categorie,")
				say_alb("se pot dobandi prin donatie sau prin participarea la")
				say_alb("anumite evenimente organizate de STAFF.")
				say_alb("(En)")
				say_alb(" The following items needed for upgrade, from this")
				say_alb("category, can be obtained through donation or from")
				say_alb("events organized by our STAFF.")
				say_alb("")
				say_alb("")
				say_alb("")
				say_verde2("Quest22-TEST")
			else
				return
            end
		end
		when 9003.chat."Comercial" begin
			say_title("Comercial")
			say_alb("")
			local s = select("Calarie  (Riding)", "Nunta  (Wedding)", "Infatisare I  (Look), "Infatisare II  (Look)", "X")
			if s == 1 then
				say_title("Calarie  (Riding)")
				say_alb("")
				say_alb("(Ro) Doriti sa deschideti magazinul?")
				say_alb("(En) Do you want to open the store?")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_reward("Yes > (Da) / No > (Nu)")
				say_verde2("Quest22-TEST")
				local cat = select("Da", "Nu")
				if cat == 1 then
					npc.open_shop(121)
				else
					return
				end
			else
			if s == 2 then
				say_title("Nunta  (Wedding)")
				say_alb("")
				say_alb("(Ro) Doriti sa deschideti magazinul?")
				say_alb("(En) Do you want to open the store?")
				say_alb("")
				say_alb("")
				say_alb("")
				say_alb("")
				say_reward("Yes > (Da) / No > (Nu)")
				say_verde2("Quest22-TEST")
				local cat = select("Da", "Nu")
				if cat == 1 then
					npc.open_shop(122)
				else
					return
				end
			else
			if s == 3 then
				npc.open_shop(123)
			else
			if s == 4 then
				npc.open_shop(124)
			else
				return
			end
		end
	end
end
Ma poate ajuta cineva sa-l repar? Eu nu stiu unde am gresit, imi pare totul in regula :(
Poftim:

Daca vrei ceva de calitate: http://just4metin.ro/mica-publicitate/s ... 68473.html
Salut, se pare ca functioneaza, insa exista o mica problema. La rubricile "Evolutie Categoria I", respectiv "Evolutie Categoria II", textul apare "scurt", sus in stanga jocului, apoi dispare. Problema este ca nu apare in chenar in mijloc si ca apare sus. (+Dupa chestia aceasta zona din mijlocul ecranului ramane "moarta", ca si cum ar fi ceva acolo si nu poti folosi bila cursorului si mouse-ul pe ea.) In rest vad ca e functional. (Nu mi se deschide numai un magazin, doar de la potiuni, dar acolo e problema de la mine si o sa o remediez).
Oare poti sa il repari? (o sa incerc si eu, cred ca ii lipseste acolo la text functia "return", asa speculez) Oricum, felicitari, pana acum e "utilizabil" :)
Astept sa vad varianta reparata, ca sa iti dau un mare "like".

Edit: Problema rezolvata, trebuia sa introduc un "return", acolo, la evolutii. Multumesc, ai un mare like si te felicit.
O mica intrebare, care ar fi comanda ca sa primesti intr-un quest 301 puncte de experienta, mersi!! ;)
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

pc.give_exp(experienta_dorita)
sau
pc.give_exp2(experienta_dorita)
apropo, ala care ti l am facut, nu functioneaza? nu mai am pe ce sa l testez caam ramasfaralaptop :))))
[ Postat de pe Android ] Imagine
Închis
Răspunsuri
6
Vizualizări
400
Răspunsuri
4
Vizualizări
223
Răspunsuri
4
Vizualizări
413
Răspunsuri
3
Vizualizări
736

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

  • Informaţie