Imi explica si mie va rog cineva...

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ă: Executare quest in putty
Tipologie server: -Test-
*Resursă folosită: -
*ServerFiles utilizat: -
*Syserr: Nu pot executa questul, deoarece imi da "Abort: Core Dumped" (must start with 'quest')
Poză: -
*Detalii suplimentare: Salutare, incerc sa-mi fac un quest in care poti vinde minerale la supra-pret, dar nu stiu unde gresesc, ma poate ajuta si pe mine un cunoscator?

Cod: Selectaţi tot

quest favorite_camera_de_comert begin 
    state start begin
	
		when 9005.chat."Comert   (Commerce)" begin
			say_title( "Comert   (Commerce)" )
			say_alb( "" )
			say_galben( "(Ro)" )
			say_alb( " Aici ai posibilitatea de a-ti majora profitul, prin munca," )
			say_alb( "minand diverse zacaminte si vanzand minereurile la un pret" )
			say_alb( "ridicat. Doresti sa faci asta?" )
			say_alb( "" )
			say_galben( "(En)" )
			say_alb( " Here you have the opportunity to increase your profit by" )
			say_alb( "working, mining various deposits and selling ores at a" )
			say_alb( "high price. Do you want to do this?" )
			say_alb( "" )
			say_verde2( "Test-Metin2Server" )
			if select( "Da" , "Nu" ) == 1 then
				say_title( "Camera de Comert   (Chamber of Commerce)" )
				say_alb( "" )
				say_galben( "(Ro)" )
				say_alb( " Selecteaza minereul pe care doresti sa il vinzi. " )
				say_alb( "" )
				say_galben( "(En)" )
				say_alb( "Select the ore you want to sell." )
				say_alb( "" )
				local SelectChoice = select( "Lemn Abanos (Ebony)" , "Bustean Fosila (Fossil Trunk)" , "- (X) -" )
					if (SelectChoice == 3) then return; end
					
					if (SelectChoice == 1) then
						say_title( "Camera de Comert  (Chamber of Commerce)" )
						say_auriu( "Lemn Abanos (Ebony) -> 600Yang/Buc(Piece)" )
						say( "" )
						say_galben( "(Ro)" )
						say_alb( "Cate bucati doriti sa vindeti? " )
						say( "" )
						say_galben( "(En)" )
						say_alb( "How many pieces do you want to sell?" )
						local SelectChoiceAA = select( "50" , "200" , "1000" , "- (X) -" )
							if (SelectChoiceAA == 4) then return; end
							
							--JOS_SUNT_50_BUC
							if (SelectChoiceAA == 1) then
							say_title( "Camera de Comert  (Chamber of Commerce)" )
							say_auriu( "Lemn Abanos (Ebony) -> 600Yang/Buc(Piece)" )
							say( "" )
							say_galben( "(Ro)" )
							say_alb( "Doresti sa vinzi 50 bucati de minereu?" )
							say( "" )
							say_galben( "(En)" )
							say_alb( "Do you want to sell 50 pieces of ore?" )
							say( "" )
							say_reward( "BONUS: +0% Yang (Cantitate)" )
							say_reward( "MINEREURI: 30000 Yang" )
							say_reward( "TOTAL (BONUS + MINEREURI): 30000 (30k) Yang" )
							say_verde2( "Test-Metin2Server" )
								if select( "Da" , "Nu" ) == 1 then
									if pc.count_item(50608) < 50 then
									say_title( "Camera de Comert  (Chamber of Commerce)" )
									say( "" )
									say_galben( "(Ro)" )
									say_rosu( "Imposibil! Nu detineti toate articolele necesare, petru" )
									say_rosu( "a continua operatiunea." )
									say( "" )
									say_galben( "(En)" )
									say_rosu( "Impossible! You do not have all the necessary objects" )
									say_rosu( "to continue the operation." )
									say( "" )
									say( "" )
									say( "" )
									say( "" )
									say_verde2( "Test-Metin2Server" )
									return
									elseif pc.count_item(50608) >= 50 then
									say_title( "Camera de Comert  (Chamber of Commerce)" )
									say( "" )
									say_galben( "(Ro)" )
									say_verde2( "Articole vandute cu succes!" )
									say_verde2( "Suma de bani a fost adaugata contului dumneavoastra." )
									say( "" )
									say_galben( "(En)" )
									say_verde2( "Article sold successfully!" )
									say_verde2( "Money has been added to your account." )
									say( "" )
									say( "" )
									say( "" )
									say( "" )
									say_verde2( "Test-Metin2Server" )
									pc.remove_item("50608", 50)
									pc.change_gold(50000)
									end
								end
							end
							
							--JOS_SUNT_200_BUC
							if (SelectChoiceAA == 2) then
							say_title( "Camera de Comert  (Chamber of Commerce)" )
							say_auriu( "Lemn Abanos (Ebony) -> 600Yang/Buc(Piece)" )
							say( "" )
							say_galben( "(Ro)" )
							say_alb( "Doresti sa vinzi 200 bucati de minereu?" )
							say( "" )
							say_galben( "(En)" )
							say_alb( "Do you want to sell 200 pieces of ore?" )
							say( "" )
							say_reward( "BONUS: +5% Yang (Cantitate)" )
							say_reward( "MINEREURI: 120000 Yang" )
							say_reward( "TOTAL (BONUS + MINEREURI): 132000 (132k) Yang" )
							say_verde2( "Test-Metin2Server" )
								if select( "Da" , "Nu" ) == 1 then
									if pc.count_item(50608) < 200 then
									say_title( "Camera de Comert  (Chamber of Commerce)" )
									say( "" )
									say_galben( "(Ro)" )
									say_rosu( "Imposibil! Nu detineti toate articolele necesare, petru" )
									say_rosu( "a continua operatiunea." )
									say( "" )
									say_galben( "(En)" )
									say_rosu( "Impossible! You do not have all the necessary objects" )
									say_rosu( "to continue the operation." )
									say( "" )
									say( "" )
									say( "" )
									say( "" )
									say_verde2( "Test-Metin2Server" )
									return
									elseif pc.count_item(50608) >= 200 then
									say_title( "Camera de Comert  (Chamber of Commerce)" )
									say( "" )
									say_galben( "(Ro)" )
									say_verde2( "Articole vandute cu succes!" )
									say_verde2( "Suma de bani a fost adaugata contului dumneavoastra." )
									say( "" )
									say_galben( "(En)" )
									say_verde2( "Article sold successfully!" )
									say_verde2( "Money has been added to your account." )
									say( "" )
									say( "" )
									say( "" )
									say( "" )
									say_verde2( "Test-Metin2Server" )
									pc.remove_item("50608", 200)
									pc.change_gold(132000)
									end
								end
							end
							
							--JOS_SUNT_1000_BUC
							if (SelectChoiceAA == 3) then
							say_title( "Camera de Comert  (Chamber of Commerce)" )
							say_auriu( "Lemn Abanos (Ebony) -> 600Yang/Buc(Piece)" )
							say( "" )
							say_galben( "(Ro)" )
							say_alb( "Doresti sa vinzi 1000 bucati de minereu?" )
							say( "" )
							say_galben( "(En)" )
							say_alb( "Do you want to sell 1000 pieces of ore?" )
							say( "" )
							say_reward( "BONUS: +30% Yang (Cantitate)" )
							say_reward( "MINEREURI: 600000 Yang" )
							say_reward( "TOTAL (BONUS + MINEREURI): 780000 (780k) Yang" )
							say_verde2( "Test-Metin2Server" )
								if select( "Da" , "Nu" ) == 1 then
									if pc.count_item(50608) < 1000 then
									say_title( "Camera de Comert  (Chamber of Commerce)" )
									say( "" )
									say_galben( "(Ro)" )
									say_rosu( "Imposibil! Nu detineti toate articolele necesare, petru" )
									say_rosu( "a continua operatiunea." )
									say( "" )
									say_galben( "(En)" )
									say_rosu( "Impossible! You do not have all the necessary objects" )
									say_rosu( "to continue the operation." )
									say( "" )
									say( "" )
									say( "" )
									say( "" )
									say_verde2( "Test-Metin2Server" )
									return
									elseif pc.count_item(50608) >= 1000 then
									say_title( "Camera de Comert  (Chamber of Commerce)" )
									say( "" )
									say_galben( "(Ro)" )
									say_verde2( "Articole vandute cu succes!" )
									say_verde2( "Suma de bani a fost adaugata contului dumneavoastra." )
									say( "" )
									say_galben( "(En)" )
									say_verde2( "Article sold successfully!" )
									say_verde2( "Money has been added to your account." )
									say( "" )
									say( "" )
									say( "" )
									say( "" )
									say_verde2( "Test-Metin2Server" )
									pc.remove_item("50608", 1000)
									pc.change_gold(780000)
									end
								end -- INCHIDERE (IF Select Da/Nu)
							end -- INCHIDERE (IF SekectChoiceAA)
						end -- INCHIDERE (LOCAL - SelectChoiceAA)
					
					
					--.
					--__SUS__ESTE__MINEREU__DE__ABANOS________________________________________________________
					--__JOS__ESTE__MINEREU__DE__BUSTEAN__FOSILA_______________________________________________
					--.
					if (SelectChoice == 2) then
						say_title( "Camera de Comert  (Chamber of Commerce)" )
						say_auriu( "Bustean Fosila (Fossil Trunk) -> 625Yang/Buc(Piece)" )
						say( "" )
						say_galben( "(Ro)" )
						say_alb( "Cate bucati doriti sa vindeti? " )
						say( "" )
						say_galben( "(En)" )
						say_alb( "How many pieces do you want to sell?" )
						local SelectChoiceAA = select( "50" , "200" , "1000" , "- (X) -" )
							if (SelectChoiceAA == 4) then return; end
							
							--JOS_SUNT_50_BUC
							if (SelectChoiceAA == 1) then
							say_title( "Camera de Comert  (Chamber of Commerce)" )
							say_auriu( "Bustean Fosila (Fossil Trunk) -> 625Yang/Buc(Piece)" )
							say( "" )
							say_galben( "(Ro)" )
							say_alb( "Doresti sa vinzi 50 bucati de minereu?" )
							say( "" )
							say_galben( "(En)" )
							say_alb( "Do you want to sell 50 pieces of ore?" )
							say( "" )
							say_reward( "BONUS: +0% Yang (Cantitate)" )
							say_reward( "MINEREURI: 31250 Yang" )
							say_reward( "TOTAL (BONUS + MINEREURI): 31250 (31.25k) Yang" )
							say_verde2( "Test-Metin2Server" )
								if select( "Da" , "Nu" ) == 1 then
									if pc.count_item(50608) < 50 then
									say_title( "Camera de Comert  (Chamber of Commerce)" )
									say( "" )
									say_galben( "(Ro)" )
									say_rosu( "Imposibil! Nu detineti toate articolele necesare, petru" )
									say_rosu( "a continua operatiunea." )
									say( "" )
									say_galben( "(En)" )
									say_rosu( "Impossible! You do not have all the necessary objects" )
									say_rosu( "to continue the operation." )
									say( "" )
									say( "" )
									say( "" )
									say( "" )
									say_verde2( "Test-Metin2Server" )
									return
									elseif pc.count_item(50608) >= 50 then
									say_title( "Camera de Comert  (Chamber of Commerce)" )
									say( "" )
									say_galben( "(Ro)" )
									say_verde2( "Articole vandute cu succes!" )
									say_verde2( "Suma de bani a fost adaugata contului dumneavoastra." )
									say( "" )
									say_galben( "(En)" )
									say_verde2( "Article sold successfully!" )
									say_verde2( "Money has been added to your account." )
									say( "" )
									say( "" )
									say( "" )
									say( "" )
									say_verde2( "Test-Metin2Server" )
									pc.remove_item("50608", 50)
									pc.change_gold(31250)
									end
								end
							end
							
							--JOS_SUNT_200_BUC
							if (SelectChoiceAA == 2) then
							say_title( "Camera de Comert  (Chamber of Commerce)" )
							say_auriu( "Bustean Fosila (Fossil Trunk) -> 625Yang/Buc(Piece)" )
							say( "" )
							say_galben( "(Ro)" )
							say_alb( "Doresti sa vinzi 200 bucati de minereu?" )
							say( "" )
							say_galben( "(En)" )
							say_alb( "Do you want to sell 200 pieces of ore?" )
							say( "" )
							say_reward( "BONUS: +5% Yang (Cantitate)" )
							say_reward( "MINEREURI: 125000 Yang" )
							say_reward( "TOTAL (BONUS + MINEREURI): 131250 (131.25k) Yang" )
							say_verde2( "Test-Metin2Server" )
								if select( "Da" , "Nu" ) == 1 then
									if pc.count_item(50608) < 200 then
									say_title( "Camera de Comert  (Chamber of Commerce)" )
									say( "" )
									say_galben( "(Ro)" )
									say_rosu( "Imposibil! Nu detineti toate articolele necesare, petru" )
									say_rosu( "a continua operatiunea." )
									say( "" )
									say_galben( "(En)" )
									say_rosu( "Impossible! You do not have all the necessary objects" )
									say_rosu( "to continue the operation." )
									say( "" )
									say( "" )
									say( "" )
									say( "" )
									say_verde2( "Test-Metin2Server" )
									return
									elseif pc.count_item(50608) >= 200 then
									say_title( "Camera de Comert  (Chamber of Commerce)" )
									say( "" )
									say_galben( "(Ro)" )
									say_verde2( "Articole vandute cu succes!" )
									say_verde2( "Suma de bani a fost adaugata contului dumneavoastra." )
									say( "" )
									say_galben( "(En)" )
									say_verde2( "Article sold successfully!" )
									say_verde2( "Money has been added to your account." )
									say( "" )
									say( "" )
									say( "" )
									say( "" )
									say_verde2( "Test-Metin2Server" )
									pc.remove_item("50608", 200)
									pc.change_gold(131250)
									end
								end
							end
							
							--JOS_SUNT_1000_BUC
							if (SelectChoiceAA == 3) then
							say_title( "Camera de Comert  (Chamber of Commerce)" )
							say_auriu( "Bustean Fosila (Fossil Trunk) -> 625Yang/Buc(Piece)" )
							say( "" )
							say_galben( "(Ro)" )
							say_alb( "Doresti sa vinzi 1000 bucati de minereu?" )
							say( "" )
							say_galben( "(En)" )
							say_alb( "Do you want to sell 1000 pieces of ore?" )
							say( "" )
							say_reward( "BONUS: +30% Yang (Cantitate)" )
							say_reward( "MINEREURI: 625000 Yang" )
							say_reward( "TOTAL (BONUS + MINEREURI): 812500 (812.5k) Yang" )
							say_verde2( "Test-Metin2Server" )
								if select( "Da" , "Nu" ) == 1 then
									if pc.count_item(50608) < 1000 then
									say_title( "Camera de Comert  (Chamber of Commerce)" )
									say( "" )
									say_galben( "(Ro)" )
									say_rosu( "Imposibil! Nu detineti toate articolele necesare, petru" )
									say_rosu( "a continua operatiunea." )
									say( "" )
									say_galben( "(En)" )
									say_rosu( "Impossible! You do not have all the necessary objects" )
									say_rosu( "to continue the operation." )
									say( "" )
									say( "" )
									say( "" )
									say( "" )
									say_verde2( "Test-Metin2Server" )
									return
									elseif pc.count_item(50608) >= 1000 then
									say_title( "Camera de Comert  (Chamber of Commerce)" )
									say( "" )
									say_galben( "(Ro)" )
									say_verde2( "Articole vandute cu succes!" )
									say_verde2( "Suma de bani a fost adaugata contului dumneavoastra." )
									say( "" )
									say_galben( "(En)" )
									say_verde2( "Article sold successfully!" )
									say_verde2( "Money has been added to your account." )
									say( "" )
									say( "" )
									say( "" )
									say( "" )
									say_verde2( "Test-Metin2Server" )
									pc.remove_item("50608", 1000)
									pc.change_gold(812500)
									end
								end -- INCHIDERE (IF Select Da/Nu)
							end -- INCHIDERE (IF SekectChoiceAA)
						end -- INCHIDERE (LOCAL - SelectChoiceAA)
					
					end --INCHIDERE (IF SelectChoice)
				end -- INCHIDERE (LOCAL - SelectChoice)
			end -- INCHIDERE (IF Select Da/Nu)
		end -- INCHIDERE (When 9005, rubrica)
	end -- INCHIDERE (State Start)
end

Avatar utilizator
Areș
Membru Club

Membru Club
Mesaje: 202
Membru din: 29 Ian 2017, 22:03
Regat: Jinno
Aprecieri: 354  
Mulţumiri: 382  
Discord: Copiază ID
Medalii

La finalul questului erau 2 ''end'' care erau în plus, le-am scos am executat și a mers, am aranjat și questul puțin, eu l-am executat în .vdi dar probabil că o să îți funcționeze și ție.

Apropo, eu nu cred că acele 2 end-uri au fost puse intenționat, bag de seamă că acest quest a fost cumva cules de prin object și ''asamblat' sub formă de .quest/.lua' de aceea fără intenție sa copiat cu câteva ''end''-uri în plus.

Oricum... lasă te rog un reply dacă ți-a mers în putty questul.

Cod: Selectaţi tot

quest favorite_camera_de_comert begin
	state start begin
		when 9005.chat."Comert	(Commerce)" begin
			say_title("Comert	(Commerce)")
			say("")
			say("(Ro)")
			say(" Aici ai posibilitatea de a-ti majora profitul, prin munca,")
			say("minand diverse zacaminte si vanzand minereurile la un pret")
			say("ridicat. Doresti sa faci asta?")
			say("")
			say("(En)")
			say(" Here you have the opportunity to increase your profit by")
			say("working, mining various deposits and selling ores at a")
			say("high price. Do you want to do this?")
			say("")
			say("Test-Metin2Server")
			if select("Da","Nu") == 1 then
				say_title("Camera de Comert	(Chamber of Commerce)")
				say("")
				say("(Ro)")
				say(" Selecteaza minereul pe care doresti sa il vinzi. ")
				say("")
				say("(En)")
				say("Select the ore you want to sell.")
				say("")
				local SelectChoice = select("Lemn Abanos (Ebony)","Bustean Fosila (Fossil Trunk)","- (X) -")
					if (SelectChoice == 3) then return; end
					
					if (SelectChoice == 1) then
						say_title("Camera de Comert  (Chamber of Commerce)")
						say("Lemn Abanos (Ebony) -> 600Yang/Buc(Piece)")
						say("")
						say("(Ro)")
						say("Cate bucati doriti sa vindeti? ")
						say("")
						say("(En)")
						say("How many pieces do you want to sell?")
						local SelectChoiceAA = select("50","200","1000","- (X) -")
							if (SelectChoiceAA == 4) then return; end
							
							----JOS_SUNT_50_BUC
							if (SelectChoiceAA == 1) then
							say_title("Camera de Comert  (Chamber of Commerce)")
							say("Lemn Abanos (Ebony) -> 600Yang/Buc(Piece)")
							say("")
							say("(Ro)")
							say("Doresti sa vinzi 50 bucati de minereu?")
							say("")
							say("(En)")
							say("Do you want to sell 50 pieces of ore?")
							say("")
							say_reward("BONUS: +0% Yang (Cantitate)")
							say_reward("MINEREURI: 30000 Yang")
							say_reward("TOTAL (BONUS + MINEREURI): 30000 (30k) Yang")
							say("Test-Metin2Server")
								if select("Da","Nu") == 1 then
									if pc.count_item(50608) < 50 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Imposibil! Nu detineti toate articolele necesare, petru")
									say("a continua operatiunea.")
									say("")
									say("(En)")
									say("Impossible! You do not have all the necessary objects")
									say("to continue the operation.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									return
									elseif pc.count_item(50608) >= 50 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Articole vandute cu succes!")
									say("Suma de bani a fost adaugata contului dumneavoastra.")
									say("")
									say("(En)")
									say("Article sold successfully!")
									say("Money has been added to your account.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									pc.remove_item(50608, 50)
									pc.change_gold(50000)
									end
								end
							end
							
							----JOS_SUNT_200_BUC
							if (SelectChoiceAA == 2) then
							say_title("Camera de Comert  (Chamber of Commerce)")
							say("Lemn Abanos (Ebony) -> 600Yang/Buc(Piece)")
							say("")
							say("(Ro)")
							say("Doresti sa vinzi 200 bucati de minereu?")
							say("")
							say("(En)")
							say("Do you want to sell 200 pieces of ore?")
							say("")
							say_reward("BONUS: +5% Yang (Cantitate)")
							say_reward("MINEREURI: 120000 Yang")
							say_reward("TOTAL (BONUS + MINEREURI): 132000 (132k) Yang")
							say("Test-Metin2Server")
								if select("Da","Nu") == 1 then
									if pc.count_item(50608) < 200 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Imposibil! Nu detineti toate articolele necesare, petru")
									say("a continua operatiunea.")
									say("")
									say("(En)")
									say("Impossible! You do not have all the necessary objects")
									say("to continue the operation.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									return
									elseif pc.count_item(50608) >= 200 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Articole vandute cu succes!")
									say("Suma de bani a fost adaugata contului dumneavoastra.")
									say("")
									say("(En)")
									say("Article sold successfully!")
									say("Money has been added to your account.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									pc.remove_item(50608, 200)
									pc.change_gold(132000)
									end
								end
							end
							
							----JOS_SUNT_1000_BUC
							if (SelectChoiceAA == 3) then
							say_title("Camera de Comert  (Chamber of Commerce)")
							say("Lemn Abanos (Ebony) -> 600Yang/Buc(Piece)")
							say("")
							say("(Ro)")
							say("Doresti sa vinzi 1000 bucati de minereu?")
							say("")
							say("(En)")
							say("Do you want to sell 1000 pieces of ore?")
							say("")
							say_reward("BONUS: +30% Yang (Cantitate)")
							say_reward("MINEREURI: 600000 Yang")
							say_reward("TOTAL (BONUS + MINEREURI): 780000 (780k) Yang")
							say("Test-Metin2Server")
								if select("Da","Nu") == 1 then
									if pc.count_item(50608) < 1000 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Imposibil! Nu detineti toate articolele necesare, petru")
									say("a continua operatiunea.")
									say("")
									say("(En)")
									say("Impossible! You do not have all the necessary objects")
									say("to continue the operation.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									return
									elseif pc.count_item(50608) >= 1000 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Articole vandute cu succes!")
									say("Suma de bani a fost adaugata contului dumneavoastra.")
									say("")
									say("(En)")
									say("Article sold successfully!")
									say("Money has been added to your account.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									pc.remove_item(50608, 1000)
									pc.change_gold(780000)
									end
								end ---- INCHIDERE (IF Select Da/Nu)
							end ---- INCHIDERE (IF SekectChoiceAA)
						end ---- INCHIDERE (LOCAL - SelectChoiceAA)
					
					
					----.
					----__SUS__ESTE__MINEREU__DE__ABANOS________________________________________________________
					----__JOS__ESTE__MINEREU__DE__BUSTEAN__FOSILA_______________________________________________
					----.
					if (SelectChoice == 2) then
						say_title("Camera de Comert  (Chamber of Commerce)")
						say("Bustean Fosila (Fossil Trunk) -> 625Yang/Buc(Piece)")
						say("")
						say("(Ro)")
						say("Cate bucati doriti sa vindeti? ")
						say("")
						say("(En)")
						say("How many pieces do you want to sell?")
						local SelectChoiceAA = select("50","200","1000","- (X) -")
							if (SelectChoiceAA == 4) then return; end
							
							----JOS_SUNT_50_BUC
							if (SelectChoiceAA == 1) then
							say_title("Camera de Comert  (Chamber of Commerce)")
							say("Bustean Fosila (Fossil Trunk) -> 625Yang/Buc(Piece)")
							say("")
							say("(Ro)")
							say("Doresti sa vinzi 50 bucati de minereu?")
							say("")
							say("(En)")
							say("Do you want to sell 50 pieces of ore?")
							say("")
							say_reward("BONUS: +0% Yang (Cantitate)")
							say_reward("MINEREURI: 31250 Yang")
							say_reward("TOTAL (BONUS + MINEREURI): 31250 (31.25k) Yang")
							say("Test-Metin2Server")
								if select("Da","Nu") == 1 then
									if pc.count_item(50608) < 50 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Imposibil! Nu detineti toate articolele necesare, petru")
									say("a continua operatiunea.")
									say("")
									say("(En)")
									say("Impossible! You do not have all the necessary objects")
									say("to continue the operation.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									return
									elseif pc.count_item(50608) >= 50 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Articole vandute cu succes!")
									say("Suma de bani a fost adaugata contului dumneavoastra.")
									say("")
									say("(En)")
									say("Article sold successfully!")
									say("Money has been added to your account.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									pc.remove_item(50608, 50)
									pc.change_gold(31250)
									end
								end
							end
							
							----JOS_SUNT_200_BUC
							if (SelectChoiceAA == 2) then
							say_title("Camera de Comert  (Chamber of Commerce)")
							say("Bustean Fosila (Fossil Trunk) -> 625Yang/Buc(Piece)")
							say("")
							say("(Ro)")
							say("Doresti sa vinzi 200 bucati de minereu?")
							say("")
							say("(En)")
							say("Do you want to sell 200 pieces of ore?")
							say("")
							say_reward("BONUS: +5% Yang (Cantitate)")
							say_reward("MINEREURI: 125000 Yang")
							say_reward("TOTAL (BONUS + MINEREURI): 131250 (131.25k) Yang")
							say("Test-Metin2Server")
								if select("Da","Nu") == 1 then
									if pc.count_item(50608) < 200 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Imposibil! Nu detineti toate articolele necesare, petru")
									say("a continua operatiunea.")
									say("")
									say("(En)")
									say("Impossible! You do not have all the necessary objects")
									say("to continue the operation.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									return
									elseif pc.count_item(50608) >= 200 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Articole vandute cu succes!")
									say("Suma de bani a fost adaugata contului dumneavoastra.")
									say("")
									say("(En)")
									say("Article sold successfully!")
									say("Money has been added to your account.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									pc.remove_item(50608, 200)
									pc.change_gold(131250)
									end
								end
							end
							
							----JOS_SUNT_1000_BUC
							if (SelectChoiceAA == 3) then
							say_title("Camera de Comert  (Chamber of Commerce)")
							say("Bustean Fosila (Fossil Trunk) -> 625Yang/Buc(Piece)")
							say("")
							say("(Ro)")
							say("Doresti sa vinzi 1000 bucati de minereu?")
							say("")
							say("(En)")
							say("Do you want to sell 1000 pieces of ore?")
							say("")
							say_reward("BONUS: +30% Yang (Cantitate)")
							say_reward("MINEREURI: 625000 Yang")
							say_reward("TOTAL (BONUS + MINEREURI): 812500 (812.5k) Yang")
							say("Test-Metin2Server")
								if select("Da","Nu") == 1 then
									if pc.count_item(50608) < 1000 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Imposibil! Nu detineti toate articolele necesare, petru")
									say("a continua operatiunea.")
									say("")
									say("(En)")
									say("Impossible! You do not have all the necessary objects")
									say("to continue the operation.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									return
									elseif pc.count_item(50608) >= 1000 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Articole vandute cu succes!")
									say("Suma de bani a fost adaugata contului dumneavoastra.")
									say("")
									say("(En)")
									say("Article sold successfully!")
									say("Money has been added to your account.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									pc.remove_item(50608, 1000)
									pc.change_gold(812500)

								end ---- INCHIDERE (IF Select Da/Nu)
							end ---- INCHIDERE (IF SekectChoiceAA)
						end ---- INCHIDERE (LOCAL - SelectChoiceAA)
					
					end ----INCHIDERE (IF SelectChoice)
				end ---- INCHIDERE (LOCAL - SelectChoice)
			end ---- INCHIDERE (IF Select Da/Nu)
		end ---- INCHIDERE (When 9005, rubrica)
	end ---- INCHIDERE (State Start)

Edit: Ahh... am uitat, am șters say-urile cu verde...galben...etc ca să îl pot executa la mine eu nu le am dar dacă dorești folosește questul original al tău cu tot cu say_culori... și șterge doar aceste 2 end-uri:
Imagine
Afișează semnătura
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

Pablo Escopăr scrie:La finalul questului erau 2 ''end'' care erau în plus, le-am scos am executat și a mers, am aranjat și questul puțin, eu l-am executat în .vdi dar probabil că o să îți funcționeze și ție.

Apropo, eu nu cred că acele 2 end-uri au fost puse intenționat, bag de seamă că acest quest a fost cumva cules de prin object și ''asamblat' sub formă de .quest/.lua' de aceea fără intenție sa copiat cu câteva ''end''-uri în plus.

Oricum... lasă te rog un reply dacă ți-a mers în putty questul.

Cod: Selectaţi tot

quest favorite_camera_de_comert begin
	state start begin
		when 9005.chat."Comert	(Commerce)" begin
			say_title("Comert	(Commerce)")
			say("")
			say("(Ro)")
			say(" Aici ai posibilitatea de a-ti majora profitul, prin munca,")
			say("minand diverse zacaminte si vanzand minereurile la un pret")
			say("ridicat. Doresti sa faci asta?")
			say("")
			say("(En)")
			say(" Here you have the opportunity to increase your profit by")
			say("working, mining various deposits and selling ores at a")
			say("high price. Do you want to do this?")
			say("")
			say("Test-Metin2Server")
			if select("Da","Nu") == 1 then
				say_title("Camera de Comert	(Chamber of Commerce)")
				say("")
				say("(Ro)")
				say(" Selecteaza minereul pe care doresti sa il vinzi. ")
				say("")
				say("(En)")
				say("Select the ore you want to sell.")
				say("")
				local SelectChoice = select("Lemn Abanos (Ebony)","Bustean Fosila (Fossil Trunk)","- (X) -")
					if (SelectChoice == 3) then return; end
					
					if (SelectChoice == 1) then
						say_title("Camera de Comert  (Chamber of Commerce)")
						say("Lemn Abanos (Ebony) -> 600Yang/Buc(Piece)")
						say("")
						say("(Ro)")
						say("Cate bucati doriti sa vindeti? ")
						say("")
						say("(En)")
						say("How many pieces do you want to sell?")
						local SelectChoiceAA = select("50","200","1000","- (X) -")
							if (SelectChoiceAA == 4) then return; end
							
							----JOS_SUNT_50_BUC
							if (SelectChoiceAA == 1) then
							say_title("Camera de Comert  (Chamber of Commerce)")
							say("Lemn Abanos (Ebony) -> 600Yang/Buc(Piece)")
							say("")
							say("(Ro)")
							say("Doresti sa vinzi 50 bucati de minereu?")
							say("")
							say("(En)")
							say("Do you want to sell 50 pieces of ore?")
							say("")
							say_reward("BONUS: +0% Yang (Cantitate)")
							say_reward("MINEREURI: 30000 Yang")
							say_reward("TOTAL (BONUS + MINEREURI): 30000 (30k) Yang")
							say("Test-Metin2Server")
								if select("Da","Nu") == 1 then
									if pc.count_item(50608) < 50 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Imposibil! Nu detineti toate articolele necesare, petru")
									say("a continua operatiunea.")
									say("")
									say("(En)")
									say("Impossible! You do not have all the necessary objects")
									say("to continue the operation.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									return
									elseif pc.count_item(50608) >= 50 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Articole vandute cu succes!")
									say("Suma de bani a fost adaugata contului dumneavoastra.")
									say("")
									say("(En)")
									say("Article sold successfully!")
									say("Money has been added to your account.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									pc.remove_item(50608, 50)
									pc.change_gold(50000)
									end
								end
							end
							
							----JOS_SUNT_200_BUC
							if (SelectChoiceAA == 2) then
							say_title("Camera de Comert  (Chamber of Commerce)")
							say("Lemn Abanos (Ebony) -> 600Yang/Buc(Piece)")
							say("")
							say("(Ro)")
							say("Doresti sa vinzi 200 bucati de minereu?")
							say("")
							say("(En)")
							say("Do you want to sell 200 pieces of ore?")
							say("")
							say_reward("BONUS: +5% Yang (Cantitate)")
							say_reward("MINEREURI: 120000 Yang")
							say_reward("TOTAL (BONUS + MINEREURI): 132000 (132k) Yang")
							say("Test-Metin2Server")
								if select("Da","Nu") == 1 then
									if pc.count_item(50608) < 200 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Imposibil! Nu detineti toate articolele necesare, petru")
									say("a continua operatiunea.")
									say("")
									say("(En)")
									say("Impossible! You do not have all the necessary objects")
									say("to continue the operation.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									return
									elseif pc.count_item(50608) >= 200 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Articole vandute cu succes!")
									say("Suma de bani a fost adaugata contului dumneavoastra.")
									say("")
									say("(En)")
									say("Article sold successfully!")
									say("Money has been added to your account.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									pc.remove_item(50608, 200)
									pc.change_gold(132000)
									end
								end
							end
							
							----JOS_SUNT_1000_BUC
							if (SelectChoiceAA == 3) then
							say_title("Camera de Comert  (Chamber of Commerce)")
							say("Lemn Abanos (Ebony) -> 600Yang/Buc(Piece)")
							say("")
							say("(Ro)")
							say("Doresti sa vinzi 1000 bucati de minereu?")
							say("")
							say("(En)")
							say("Do you want to sell 1000 pieces of ore?")
							say("")
							say_reward("BONUS: +30% Yang (Cantitate)")
							say_reward("MINEREURI: 600000 Yang")
							say_reward("TOTAL (BONUS + MINEREURI): 780000 (780k) Yang")
							say("Test-Metin2Server")
								if select("Da","Nu") == 1 then
									if pc.count_item(50608) < 1000 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Imposibil! Nu detineti toate articolele necesare, petru")
									say("a continua operatiunea.")
									say("")
									say("(En)")
									say("Impossible! You do not have all the necessary objects")
									say("to continue the operation.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									return
									elseif pc.count_item(50608) >= 1000 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Articole vandute cu succes!")
									say("Suma de bani a fost adaugata contului dumneavoastra.")
									say("")
									say("(En)")
									say("Article sold successfully!")
									say("Money has been added to your account.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									pc.remove_item(50608, 1000)
									pc.change_gold(780000)
									end
								end ---- INCHIDERE (IF Select Da/Nu)
							end ---- INCHIDERE (IF SekectChoiceAA)
						end ---- INCHIDERE (LOCAL - SelectChoiceAA)
					
					
					----.
					----__SUS__ESTE__MINEREU__DE__ABANOS________________________________________________________
					----__JOS__ESTE__MINEREU__DE__BUSTEAN__FOSILA_______________________________________________
					----.
					if (SelectChoice == 2) then
						say_title("Camera de Comert  (Chamber of Commerce)")
						say("Bustean Fosila (Fossil Trunk) -> 625Yang/Buc(Piece)")
						say("")
						say("(Ro)")
						say("Cate bucati doriti sa vindeti? ")
						say("")
						say("(En)")
						say("How many pieces do you want to sell?")
						local SelectChoiceAA = select("50","200","1000","- (X) -")
							if (SelectChoiceAA == 4) then return; end
							
							----JOS_SUNT_50_BUC
							if (SelectChoiceAA == 1) then
							say_title("Camera de Comert  (Chamber of Commerce)")
							say("Bustean Fosila (Fossil Trunk) -> 625Yang/Buc(Piece)")
							say("")
							say("(Ro)")
							say("Doresti sa vinzi 50 bucati de minereu?")
							say("")
							say("(En)")
							say("Do you want to sell 50 pieces of ore?")
							say("")
							say_reward("BONUS: +0% Yang (Cantitate)")
							say_reward("MINEREURI: 31250 Yang")
							say_reward("TOTAL (BONUS + MINEREURI): 31250 (31.25k) Yang")
							say("Test-Metin2Server")
								if select("Da","Nu") == 1 then
									if pc.count_item(50608) < 50 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Imposibil! Nu detineti toate articolele necesare, petru")
									say("a continua operatiunea.")
									say("")
									say("(En)")
									say("Impossible! You do not have all the necessary objects")
									say("to continue the operation.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									return
									elseif pc.count_item(50608) >= 50 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Articole vandute cu succes!")
									say("Suma de bani a fost adaugata contului dumneavoastra.")
									say("")
									say("(En)")
									say("Article sold successfully!")
									say("Money has been added to your account.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									pc.remove_item(50608, 50)
									pc.change_gold(31250)
									end
								end
							end
							
							----JOS_SUNT_200_BUC
							if (SelectChoiceAA == 2) then
							say_title("Camera de Comert  (Chamber of Commerce)")
							say("Bustean Fosila (Fossil Trunk) -> 625Yang/Buc(Piece)")
							say("")
							say("(Ro)")
							say("Doresti sa vinzi 200 bucati de minereu?")
							say("")
							say("(En)")
							say("Do you want to sell 200 pieces of ore?")
							say("")
							say_reward("BONUS: +5% Yang (Cantitate)")
							say_reward("MINEREURI: 125000 Yang")
							say_reward("TOTAL (BONUS + MINEREURI): 131250 (131.25k) Yang")
							say("Test-Metin2Server")
								if select("Da","Nu") == 1 then
									if pc.count_item(50608) < 200 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Imposibil! Nu detineti toate articolele necesare, petru")
									say("a continua operatiunea.")
									say("")
									say("(En)")
									say("Impossible! You do not have all the necessary objects")
									say("to continue the operation.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									return
									elseif pc.count_item(50608) >= 200 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Articole vandute cu succes!")
									say("Suma de bani a fost adaugata contului dumneavoastra.")
									say("")
									say("(En)")
									say("Article sold successfully!")
									say("Money has been added to your account.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									pc.remove_item(50608, 200)
									pc.change_gold(131250)
									end
								end
							end
							
							----JOS_SUNT_1000_BUC
							if (SelectChoiceAA == 3) then
							say_title("Camera de Comert  (Chamber of Commerce)")
							say("Bustean Fosila (Fossil Trunk) -> 625Yang/Buc(Piece)")
							say("")
							say("(Ro)")
							say("Doresti sa vinzi 1000 bucati de minereu?")
							say("")
							say("(En)")
							say("Do you want to sell 1000 pieces of ore?")
							say("")
							say_reward("BONUS: +30% Yang (Cantitate)")
							say_reward("MINEREURI: 625000 Yang")
							say_reward("TOTAL (BONUS + MINEREURI): 812500 (812.5k) Yang")
							say("Test-Metin2Server")
								if select("Da","Nu") == 1 then
									if pc.count_item(50608) < 1000 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Imposibil! Nu detineti toate articolele necesare, petru")
									say("a continua operatiunea.")
									say("")
									say("(En)")
									say("Impossible! You do not have all the necessary objects")
									say("to continue the operation.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									return
									elseif pc.count_item(50608) >= 1000 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Articole vandute cu succes!")
									say("Suma de bani a fost adaugata contului dumneavoastra.")
									say("")
									say("(En)")
									say("Article sold successfully!")
									say("Money has been added to your account.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									pc.remove_item(50608, 1000)
									pc.change_gold(812500)

								end ---- INCHIDERE (IF Select Da/Nu)
							end ---- INCHIDERE (IF SekectChoiceAA)
						end ---- INCHIDERE (LOCAL - SelectChoiceAA)
					
					end ----INCHIDERE (IF SelectChoice)
				end ---- INCHIDERE (LOCAL - SelectChoice)
			end ---- INCHIDERE (IF Select Da/Nu)
		end ---- INCHIDERE (When 9005, rubrica)
	end ---- INCHIDERE (State Start)

Edit: Ahh... am uitat, am șters say-urile cu verde...galben...etc ca să îl pot executa la mine eu nu le am dar dacă dorești folosește questul original al tău cu tot cu say_culori... și șterge doar aceste 2 end-uri:
Imagine
Salut, ok, o sa verific si eu.
Apropo, de ce erau in plus acele 2 end-uri? Imi zici si mie, te rog?
Inca o chestie, LOCAL, trebuie inchis cu end sau doar IF-urile, trebuie inchise?
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

t4zu scrie:
Pablo Escopăr scrie:La finalul questului erau 2 ''end'' care erau în plus, le-am scos am executat și a mers, am aranjat și questul puțin, eu l-am executat în .vdi dar probabil că o să îți funcționeze și ție.

Apropo, eu nu cred că acele 2 end-uri au fost puse intenționat, bag de seamă că acest quest a fost cumva cules de prin object și ''asamblat' sub formă de .quest/.lua' de aceea fără intenție sa copiat cu câteva ''end''-uri în plus.

Oricum... lasă te rog un reply dacă ți-a mers în putty questul.

Cod: Selectaţi tot

quest favorite_camera_de_comert begin
	state start begin
		when 9005.chat."Comert	(Commerce)" begin
			say_title("Comert	(Commerce)")
			say("")
			say("(Ro)")
			say(" Aici ai posibilitatea de a-ti majora profitul, prin munca,")
			say("minand diverse zacaminte si vanzand minereurile la un pret")
			say("ridicat. Doresti sa faci asta?")
			say("")
			say("(En)")
			say(" Here you have the opportunity to increase your profit by")
			say("working, mining various deposits and selling ores at a")
			say("high price. Do you want to do this?")
			say("")
			say("Test-Metin2Server")
			if select("Da","Nu") == 1 then
				say_title("Camera de Comert	(Chamber of Commerce)")
				say("")
				say("(Ro)")
				say(" Selecteaza minereul pe care doresti sa il vinzi. ")
				say("")
				say("(En)")
				say("Select the ore you want to sell.")
				say("")
				local SelectChoice = select("Lemn Abanos (Ebony)","Bustean Fosila (Fossil Trunk)","- (X) -")
					if (SelectChoice == 3) then return; end
					
					if (SelectChoice == 1) then
						say_title("Camera de Comert  (Chamber of Commerce)")
						say("Lemn Abanos (Ebony) -> 600Yang/Buc(Piece)")
						say("")
						say("(Ro)")
						say("Cate bucati doriti sa vindeti? ")
						say("")
						say("(En)")
						say("How many pieces do you want to sell?")
						local SelectChoiceAA = select("50","200","1000","- (X) -")
							if (SelectChoiceAA == 4) then return; end
							
							----JOS_SUNT_50_BUC
							if (SelectChoiceAA == 1) then
							say_title("Camera de Comert  (Chamber of Commerce)")
							say("Lemn Abanos (Ebony) -> 600Yang/Buc(Piece)")
							say("")
							say("(Ro)")
							say("Doresti sa vinzi 50 bucati de minereu?")
							say("")
							say("(En)")
							say("Do you want to sell 50 pieces of ore?")
							say("")
							say_reward("BONUS: +0% Yang (Cantitate)")
							say_reward("MINEREURI: 30000 Yang")
							say_reward("TOTAL (BONUS + MINEREURI): 30000 (30k) Yang")
							say("Test-Metin2Server")
								if select("Da","Nu") == 1 then
									if pc.count_item(50608) < 50 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Imposibil! Nu detineti toate articolele necesare, petru")
									say("a continua operatiunea.")
									say("")
									say("(En)")
									say("Impossible! You do not have all the necessary objects")
									say("to continue the operation.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									return
									elseif pc.count_item(50608) >= 50 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Articole vandute cu succes!")
									say("Suma de bani a fost adaugata contului dumneavoastra.")
									say("")
									say("(En)")
									say("Article sold successfully!")
									say("Money has been added to your account.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									pc.remove_item(50608, 50)
									pc.change_gold(50000)
									end
								end
							end
							
							----JOS_SUNT_200_BUC
							if (SelectChoiceAA == 2) then
							say_title("Camera de Comert  (Chamber of Commerce)")
							say("Lemn Abanos (Ebony) -> 600Yang/Buc(Piece)")
							say("")
							say("(Ro)")
							say("Doresti sa vinzi 200 bucati de minereu?")
							say("")
							say("(En)")
							say("Do you want to sell 200 pieces of ore?")
							say("")
							say_reward("BONUS: +5% Yang (Cantitate)")
							say_reward("MINEREURI: 120000 Yang")
							say_reward("TOTAL (BONUS + MINEREURI): 132000 (132k) Yang")
							say("Test-Metin2Server")
								if select("Da","Nu") == 1 then
									if pc.count_item(50608) < 200 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Imposibil! Nu detineti toate articolele necesare, petru")
									say("a continua operatiunea.")
									say("")
									say("(En)")
									say("Impossible! You do not have all the necessary objects")
									say("to continue the operation.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									return
									elseif pc.count_item(50608) >= 200 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Articole vandute cu succes!")
									say("Suma de bani a fost adaugata contului dumneavoastra.")
									say("")
									say("(En)")
									say("Article sold successfully!")
									say("Money has been added to your account.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									pc.remove_item(50608, 200)
									pc.change_gold(132000)
									end
								end
							end
							
							----JOS_SUNT_1000_BUC
							if (SelectChoiceAA == 3) then
							say_title("Camera de Comert  (Chamber of Commerce)")
							say("Lemn Abanos (Ebony) -> 600Yang/Buc(Piece)")
							say("")
							say("(Ro)")
							say("Doresti sa vinzi 1000 bucati de minereu?")
							say("")
							say("(En)")
							say("Do you want to sell 1000 pieces of ore?")
							say("")
							say_reward("BONUS: +30% Yang (Cantitate)")
							say_reward("MINEREURI: 600000 Yang")
							say_reward("TOTAL (BONUS + MINEREURI): 780000 (780k) Yang")
							say("Test-Metin2Server")
								if select("Da","Nu") == 1 then
									if pc.count_item(50608) < 1000 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Imposibil! Nu detineti toate articolele necesare, petru")
									say("a continua operatiunea.")
									say("")
									say("(En)")
									say("Impossible! You do not have all the necessary objects")
									say("to continue the operation.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									return
									elseif pc.count_item(50608) >= 1000 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Articole vandute cu succes!")
									say("Suma de bani a fost adaugata contului dumneavoastra.")
									say("")
									say("(En)")
									say("Article sold successfully!")
									say("Money has been added to your account.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									pc.remove_item(50608, 1000)
									pc.change_gold(780000)
									end
								end ---- INCHIDERE (IF Select Da/Nu)
							end ---- INCHIDERE (IF SekectChoiceAA)
						end ---- INCHIDERE (LOCAL - SelectChoiceAA)
					
					
					----.
					----__SUS__ESTE__MINEREU__DE__ABANOS________________________________________________________
					----__JOS__ESTE__MINEREU__DE__BUSTEAN__FOSILA_______________________________________________
					----.
					if (SelectChoice == 2) then
						say_title("Camera de Comert  (Chamber of Commerce)")
						say("Bustean Fosila (Fossil Trunk) -> 625Yang/Buc(Piece)")
						say("")
						say("(Ro)")
						say("Cate bucati doriti sa vindeti? ")
						say("")
						say("(En)")
						say("How many pieces do you want to sell?")
						local SelectChoiceAA = select("50","200","1000","- (X) -")
							if (SelectChoiceAA == 4) then return; end
							
							----JOS_SUNT_50_BUC
							if (SelectChoiceAA == 1) then
							say_title("Camera de Comert  (Chamber of Commerce)")
							say("Bustean Fosila (Fossil Trunk) -> 625Yang/Buc(Piece)")
							say("")
							say("(Ro)")
							say("Doresti sa vinzi 50 bucati de minereu?")
							say("")
							say("(En)")
							say("Do you want to sell 50 pieces of ore?")
							say("")
							say_reward("BONUS: +0% Yang (Cantitate)")
							say_reward("MINEREURI: 31250 Yang")
							say_reward("TOTAL (BONUS + MINEREURI): 31250 (31.25k) Yang")
							say("Test-Metin2Server")
								if select("Da","Nu") == 1 then
									if pc.count_item(50608) < 50 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Imposibil! Nu detineti toate articolele necesare, petru")
									say("a continua operatiunea.")
									say("")
									say("(En)")
									say("Impossible! You do not have all the necessary objects")
									say("to continue the operation.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									return
									elseif pc.count_item(50608) >= 50 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Articole vandute cu succes!")
									say("Suma de bani a fost adaugata contului dumneavoastra.")
									say("")
									say("(En)")
									say("Article sold successfully!")
									say("Money has been added to your account.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									pc.remove_item(50608, 50)
									pc.change_gold(31250)
									end
								end
							end
							
							----JOS_SUNT_200_BUC
							if (SelectChoiceAA == 2) then
							say_title("Camera de Comert  (Chamber of Commerce)")
							say("Bustean Fosila (Fossil Trunk) -> 625Yang/Buc(Piece)")
							say("")
							say("(Ro)")
							say("Doresti sa vinzi 200 bucati de minereu?")
							say("")
							say("(En)")
							say("Do you want to sell 200 pieces of ore?")
							say("")
							say_reward("BONUS: +5% Yang (Cantitate)")
							say_reward("MINEREURI: 125000 Yang")
							say_reward("TOTAL (BONUS + MINEREURI): 131250 (131.25k) Yang")
							say("Test-Metin2Server")
								if select("Da","Nu") == 1 then
									if pc.count_item(50608) < 200 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Imposibil! Nu detineti toate articolele necesare, petru")
									say("a continua operatiunea.")
									say("")
									say("(En)")
									say("Impossible! You do not have all the necessary objects")
									say("to continue the operation.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									return
									elseif pc.count_item(50608) >= 200 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Articole vandute cu succes!")
									say("Suma de bani a fost adaugata contului dumneavoastra.")
									say("")
									say("(En)")
									say("Article sold successfully!")
									say("Money has been added to your account.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									pc.remove_item(50608, 200)
									pc.change_gold(131250)
									end
								end
							end
							
							----JOS_SUNT_1000_BUC
							if (SelectChoiceAA == 3) then
							say_title("Camera de Comert  (Chamber of Commerce)")
							say("Bustean Fosila (Fossil Trunk) -> 625Yang/Buc(Piece)")
							say("")
							say("(Ro)")
							say("Doresti sa vinzi 1000 bucati de minereu?")
							say("")
							say("(En)")
							say("Do you want to sell 1000 pieces of ore?")
							say("")
							say_reward("BONUS: +30% Yang (Cantitate)")
							say_reward("MINEREURI: 625000 Yang")
							say_reward("TOTAL (BONUS + MINEREURI): 812500 (812.5k) Yang")
							say("Test-Metin2Server")
								if select("Da","Nu") == 1 then
									if pc.count_item(50608) < 1000 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Imposibil! Nu detineti toate articolele necesare, petru")
									say("a continua operatiunea.")
									say("")
									say("(En)")
									say("Impossible! You do not have all the necessary objects")
									say("to continue the operation.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									return
									elseif pc.count_item(50608) >= 1000 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Articole vandute cu succes!")
									say("Suma de bani a fost adaugata contului dumneavoastra.")
									say("")
									say("(En)")
									say("Article sold successfully!")
									say("Money has been added to your account.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									pc.remove_item(50608, 1000)
									pc.change_gold(812500)

								end ---- INCHIDERE (IF Select Da/Nu)
							end ---- INCHIDERE (IF SekectChoiceAA)
						end ---- INCHIDERE (LOCAL - SelectChoiceAA)
					
					end ----INCHIDERE (IF SelectChoice)
				end ---- INCHIDERE (LOCAL - SelectChoice)
			end ---- INCHIDERE (IF Select Da/Nu)
		end ---- INCHIDERE (When 9005, rubrica)
	end ---- INCHIDERE (State Start)

Edit: Ahh... am uitat, am șters say-urile cu verde...galben...etc ca să îl pot executa la mine eu nu le am dar dacă dorești folosește questul original al tău cu tot cu say_culori... și șterge doar aceste 2 end-uri:
Imagine
Salut, ok, o sa verific si eu.
Apropo, de ce erau in plus acele 2 end-uri? Imi zici si mie, te rog?
Inca o chestie, LOCAL, trebuie inchis cu end sau doar IF-urile, trebuie inchise?
Aveai "in plus acele 2 end-uri" pentru ca inchid 2 definitii de tip "local" care nu necesita sa fie terminate cu end:
http://prntscr.com/kbdyl9
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
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

[RaffaeL] scrie:
t4zu scrie:
Pablo Escopăr scrie:La finalul questului erau 2 ''end'' care erau în plus, le-am scos am executat și a mers, am aranjat și questul puțin, eu l-am executat în .vdi dar probabil că o să îți funcționeze și ție.

Apropo, eu nu cred că acele 2 end-uri au fost puse intenționat, bag de seamă că acest quest a fost cumva cules de prin object și ''asamblat' sub formă de .quest/.lua' de aceea fără intenție sa copiat cu câteva ''end''-uri în plus.

Oricum... lasă te rog un reply dacă ți-a mers în putty questul.

Cod: Selectaţi tot

quest favorite_camera_de_comert begin
	state start begin
		when 9005.chat."Comert	(Commerce)" begin
			say_title("Comert	(Commerce)")
			say("")
			say("(Ro)")
			say(" Aici ai posibilitatea de a-ti majora profitul, prin munca,")
			say("minand diverse zacaminte si vanzand minereurile la un pret")
			say("ridicat. Doresti sa faci asta?")
			say("")
			say("(En)")
			say(" Here you have the opportunity to increase your profit by")
			say("working, mining various deposits and selling ores at a")
			say("high price. Do you want to do this?")
			say("")
			say("Test-Metin2Server")
			if select("Da","Nu") == 1 then
				say_title("Camera de Comert	(Chamber of Commerce)")
				say("")
				say("(Ro)")
				say(" Selecteaza minereul pe care doresti sa il vinzi. ")
				say("")
				say("(En)")
				say("Select the ore you want to sell.")
				say("")
				local SelectChoice = select("Lemn Abanos (Ebony)","Bustean Fosila (Fossil Trunk)","- (X) -")
					if (SelectChoice == 3) then return; end
					
					if (SelectChoice == 1) then
						say_title("Camera de Comert  (Chamber of Commerce)")
						say("Lemn Abanos (Ebony) -> 600Yang/Buc(Piece)")
						say("")
						say("(Ro)")
						say("Cate bucati doriti sa vindeti? ")
						say("")
						say("(En)")
						say("How many pieces do you want to sell?")
						local SelectChoiceAA = select("50","200","1000","- (X) -")
							if (SelectChoiceAA == 4) then return; end
							
							----JOS_SUNT_50_BUC
							if (SelectChoiceAA == 1) then
							say_title("Camera de Comert  (Chamber of Commerce)")
							say("Lemn Abanos (Ebony) -> 600Yang/Buc(Piece)")
							say("")
							say("(Ro)")
							say("Doresti sa vinzi 50 bucati de minereu?")
							say("")
							say("(En)")
							say("Do you want to sell 50 pieces of ore?")
							say("")
							say_reward("BONUS: +0% Yang (Cantitate)")
							say_reward("MINEREURI: 30000 Yang")
							say_reward("TOTAL (BONUS + MINEREURI): 30000 (30k) Yang")
							say("Test-Metin2Server")
								if select("Da","Nu") == 1 then
									if pc.count_item(50608) < 50 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Imposibil! Nu detineti toate articolele necesare, petru")
									say("a continua operatiunea.")
									say("")
									say("(En)")
									say("Impossible! You do not have all the necessary objects")
									say("to continue the operation.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									return
									elseif pc.count_item(50608) >= 50 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Articole vandute cu succes!")
									say("Suma de bani a fost adaugata contului dumneavoastra.")
									say("")
									say("(En)")
									say("Article sold successfully!")
									say("Money has been added to your account.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									pc.remove_item(50608, 50)
									pc.change_gold(50000)
									end
								end
							end
							
							----JOS_SUNT_200_BUC
							if (SelectChoiceAA == 2) then
							say_title("Camera de Comert  (Chamber of Commerce)")
							say("Lemn Abanos (Ebony) -> 600Yang/Buc(Piece)")
							say("")
							say("(Ro)")
							say("Doresti sa vinzi 200 bucati de minereu?")
							say("")
							say("(En)")
							say("Do you want to sell 200 pieces of ore?")
							say("")
							say_reward("BONUS: +5% Yang (Cantitate)")
							say_reward("MINEREURI: 120000 Yang")
							say_reward("TOTAL (BONUS + MINEREURI): 132000 (132k) Yang")
							say("Test-Metin2Server")
								if select("Da","Nu") == 1 then
									if pc.count_item(50608) < 200 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Imposibil! Nu detineti toate articolele necesare, petru")
									say("a continua operatiunea.")
									say("")
									say("(En)")
									say("Impossible! You do not have all the necessary objects")
									say("to continue the operation.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									return
									elseif pc.count_item(50608) >= 200 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Articole vandute cu succes!")
									say("Suma de bani a fost adaugata contului dumneavoastra.")
									say("")
									say("(En)")
									say("Article sold successfully!")
									say("Money has been added to your account.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									pc.remove_item(50608, 200)
									pc.change_gold(132000)
									end
								end
							end
							
							----JOS_SUNT_1000_BUC
							if (SelectChoiceAA == 3) then
							say_title("Camera de Comert  (Chamber of Commerce)")
							say("Lemn Abanos (Ebony) -> 600Yang/Buc(Piece)")
							say("")
							say("(Ro)")
							say("Doresti sa vinzi 1000 bucati de minereu?")
							say("")
							say("(En)")
							say("Do you want to sell 1000 pieces of ore?")
							say("")
							say_reward("BONUS: +30% Yang (Cantitate)")
							say_reward("MINEREURI: 600000 Yang")
							say_reward("TOTAL (BONUS + MINEREURI): 780000 (780k) Yang")
							say("Test-Metin2Server")
								if select("Da","Nu") == 1 then
									if pc.count_item(50608) < 1000 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Imposibil! Nu detineti toate articolele necesare, petru")
									say("a continua operatiunea.")
									say("")
									say("(En)")
									say("Impossible! You do not have all the necessary objects")
									say("to continue the operation.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									return
									elseif pc.count_item(50608) >= 1000 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Articole vandute cu succes!")
									say("Suma de bani a fost adaugata contului dumneavoastra.")
									say("")
									say("(En)")
									say("Article sold successfully!")
									say("Money has been added to your account.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									pc.remove_item(50608, 1000)
									pc.change_gold(780000)
									end
								end ---- INCHIDERE (IF Select Da/Nu)
							end ---- INCHIDERE (IF SekectChoiceAA)
						end ---- INCHIDERE (LOCAL - SelectChoiceAA)
					
					
					----.
					----__SUS__ESTE__MINEREU__DE__ABANOS________________________________________________________
					----__JOS__ESTE__MINEREU__DE__BUSTEAN__FOSILA_______________________________________________
					----.
					if (SelectChoice == 2) then
						say_title("Camera de Comert  (Chamber of Commerce)")
						say("Bustean Fosila (Fossil Trunk) -> 625Yang/Buc(Piece)")
						say("")
						say("(Ro)")
						say("Cate bucati doriti sa vindeti? ")
						say("")
						say("(En)")
						say("How many pieces do you want to sell?")
						local SelectChoiceAA = select("50","200","1000","- (X) -")
							if (SelectChoiceAA == 4) then return; end
							
							----JOS_SUNT_50_BUC
							if (SelectChoiceAA == 1) then
							say_title("Camera de Comert  (Chamber of Commerce)")
							say("Bustean Fosila (Fossil Trunk) -> 625Yang/Buc(Piece)")
							say("")
							say("(Ro)")
							say("Doresti sa vinzi 50 bucati de minereu?")
							say("")
							say("(En)")
							say("Do you want to sell 50 pieces of ore?")
							say("")
							say_reward("BONUS: +0% Yang (Cantitate)")
							say_reward("MINEREURI: 31250 Yang")
							say_reward("TOTAL (BONUS + MINEREURI): 31250 (31.25k) Yang")
							say("Test-Metin2Server")
								if select("Da","Nu") == 1 then
									if pc.count_item(50608) < 50 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Imposibil! Nu detineti toate articolele necesare, petru")
									say("a continua operatiunea.")
									say("")
									say("(En)")
									say("Impossible! You do not have all the necessary objects")
									say("to continue the operation.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									return
									elseif pc.count_item(50608) >= 50 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Articole vandute cu succes!")
									say("Suma de bani a fost adaugata contului dumneavoastra.")
									say("")
									say("(En)")
									say("Article sold successfully!")
									say("Money has been added to your account.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									pc.remove_item(50608, 50)
									pc.change_gold(31250)
									end
								end
							end
							
							----JOS_SUNT_200_BUC
							if (SelectChoiceAA == 2) then
							say_title("Camera de Comert  (Chamber of Commerce)")
							say("Bustean Fosila (Fossil Trunk) -> 625Yang/Buc(Piece)")
							say("")
							say("(Ro)")
							say("Doresti sa vinzi 200 bucati de minereu?")
							say("")
							say("(En)")
							say("Do you want to sell 200 pieces of ore?")
							say("")
							say_reward("BONUS: +5% Yang (Cantitate)")
							say_reward("MINEREURI: 125000 Yang")
							say_reward("TOTAL (BONUS + MINEREURI): 131250 (131.25k) Yang")
							say("Test-Metin2Server")
								if select("Da","Nu") == 1 then
									if pc.count_item(50608) < 200 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Imposibil! Nu detineti toate articolele necesare, petru")
									say("a continua operatiunea.")
									say("")
									say("(En)")
									say("Impossible! You do not have all the necessary objects")
									say("to continue the operation.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									return
									elseif pc.count_item(50608) >= 200 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Articole vandute cu succes!")
									say("Suma de bani a fost adaugata contului dumneavoastra.")
									say("")
									say("(En)")
									say("Article sold successfully!")
									say("Money has been added to your account.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									pc.remove_item(50608, 200)
									pc.change_gold(131250)
									end
								end
							end
							
							----JOS_SUNT_1000_BUC
							if (SelectChoiceAA == 3) then
							say_title("Camera de Comert  (Chamber of Commerce)")
							say("Bustean Fosila (Fossil Trunk) -> 625Yang/Buc(Piece)")
							say("")
							say("(Ro)")
							say("Doresti sa vinzi 1000 bucati de minereu?")
							say("")
							say("(En)")
							say("Do you want to sell 1000 pieces of ore?")
							say("")
							say_reward("BONUS: +30% Yang (Cantitate)")
							say_reward("MINEREURI: 625000 Yang")
							say_reward("TOTAL (BONUS + MINEREURI): 812500 (812.5k) Yang")
							say("Test-Metin2Server")
								if select("Da","Nu") == 1 then
									if pc.count_item(50608) < 1000 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Imposibil! Nu detineti toate articolele necesare, petru")
									say("a continua operatiunea.")
									say("")
									say("(En)")
									say("Impossible! You do not have all the necessary objects")
									say("to continue the operation.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									return
									elseif pc.count_item(50608) >= 1000 then
									say_title("Camera de Comert  (Chamber of Commerce)")
									say("")
									say("(Ro)")
									say("Articole vandute cu succes!")
									say("Suma de bani a fost adaugata contului dumneavoastra.")
									say("")
									say("(En)")
									say("Article sold successfully!")
									say("Money has been added to your account.")
									say("")
									say("")
									say("")
									say("")
									say("Test-Metin2Server")
									pc.remove_item(50608, 1000)
									pc.change_gold(812500)

								end ---- INCHIDERE (IF Select Da/Nu)
							end ---- INCHIDERE (IF SekectChoiceAA)
						end ---- INCHIDERE (LOCAL - SelectChoiceAA)
					
					end ----INCHIDERE (IF SelectChoice)
				end ---- INCHIDERE (LOCAL - SelectChoice)
			end ---- INCHIDERE (IF Select Da/Nu)
		end ---- INCHIDERE (When 9005, rubrica)
	end ---- INCHIDERE (State Start)

Edit: Ahh... am uitat, am șters say-urile cu verde...galben...etc ca să îl pot executa la mine eu nu le am dar dacă dorești folosește questul original al tău cu tot cu say_culori... și șterge doar aceste 2 end-uri:
Imagine
Salut, ok, o sa verific si eu.
Apropo, de ce erau in plus acele 2 end-uri? Imi zici si mie, te rog?
Inca o chestie, LOCAL, trebuie inchis cu end sau doar IF-urile, trebuie inchise?
Aveai "in plus acele 2 end-uri" pentru ca inchid 2 definitii de tip "local" care nu necesita sa fie terminate cu end:
http://prntscr.com/kbdyl9
Ok, daca te rog, imi poti multiplica, de la "--JOS__ESTE__MINEREU__DE__BUSTEAN__FOSILA", pana la finalul functiei unde se cere sa se vanda 1000 de bacati (inclusiv), de 16 ori, ca la mine nu functioneaza, nici cand o copiez o data. :(
Iti postez un link cu questul, daca poti sa modifici in el, apoi sa il uploadezi si sa mi-l trimiti, daca te rog.

Link: https://mega.nz/#!dPBVDATB!fw-rX9m8zsdK ... eHokOaRae0

Mersi. Pune te rog si un semn sa imi dau seama de cate ori e copiat, ca sa modific ulterior valoriile.
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

Poate cineva sa modifice questul ( https://mega.nz/#!dPBVDATB!fw-rX9m8zsdK ... eHokOaRae0 ), astfel incat sa copieze paragrafele de la "--__JOS__ESTE__MINEREU__DE__BUSTEAN__FOSILA_______________________________________________" pana la "pc.change_gold(812500)", de inca 16 ori, astfel incat sa functioneze?
Eu am reusit doar de doua ori, conform quest-ului de sus, iar a treia oara nu am mai reusit.

Segmentul de care spuneam sus:

Cod: Selectaţi tot

--.
				--__SUS__ESTE__MINEREU__DE__ABANOS________________________________________________________
				--__JOS__ESTE__MINEREU__DE__BUSTEAN__FOSILA_______________________________________________
				--.
				if (SelectChoice == 2) then
					say_title( "Camera de Comert  (Chamber of Commerce)" )
					say_auriu( "Bustean Fosila (Fossil Trunk) -> 625Yang/Buc(Piece)" )
					say( "" )
					say_galben( "(Ro)" )
					say_alb( "Cate bucati doriti sa vindeti? " )
					say( "" )
					say_galben( "(En)" )
					say_alb( "How many pieces do you want to sell?" )
					local SelectChoiceAA = select( "50" , "200" , "1000" , "- (X) -" )
					if (SelectChoiceAA == 4) then return; end
					
					--JOS_SUNT_50_BUC
					if (SelectChoiceAA == 1) then
					say_title( "Camera de Comert  (Chamber of Commerce)" )
					say_auriu( "Bustean Fosila (Fossil Trunk) -> 625Yang/Buc(Piece)" )
					say( "" )
					say_galben( "(Ro)" )
					say_alb( "Doresti sa vinzi 50 bucati de minereu?" )
					say( "" )
					say_galben( "(En)" )
					say_alb( "Do you want to sell 50 pieces of ore?" )
					say( "" )
					say_reward( "BONUS: +0% Yang (Cantitate)" )
					say_reward( "MINEREURI: 31250 Yang" )
					say_reward( "TOTAL (BONUS + MINEREURI): 31250 (31.25k) Yang" )
					say_verde2( "Metin2-Server" )
						if select( "Da" , "Nu" ) == 1 then
							if pc.count_item(50608) < 50 then
							say_title( "Camera de Comert  (Chamber of Commerce)" )
							say( "" )
							say_galben( "(Ro)" )
							say_rosu( "Imposibil! Nu detineti toate articolele necesare, petru" )
							say_rosu( "a continua operatiunea." )
							say( "" )
							say_galben( "(En)" )
							say_rosu( "Impossible! You do not have all the necessary objects" )
							say_rosu( "to continue the operation." )
							say( "" )
							say( "" )
							say( "" )
							say( "" )
							say_verde2( "Metin2-Server" )
							return
							elseif pc.count_item(50608) >= 50 then
							say_title( "Camera de Comert  (Chamber of Commerce)" )
							say( "" )
							say_galben( "(Ro)" )
							say_verde2( "Articole vandute cu succes!" )
							say_verde2( "Suma de bani a fost adaugata contului dumneavoastra." )
							say( "" )
							say_galben( "(En)" )
							say_verde2( "Article sold successfully!" )
							say_verde2( "Money has been added to your account." )
							say( "" )
							say( "" )
							say( "" )
							say( "" )
							say_verde2( "Metin2-Server" )
							pc.remove_item("50608", 50)
							pc.change_gold(31250)
							end
						end
					end
					
					--JOS_SUNT_200_BUC
					if (SelectChoiceAA == 2) then
					say_title( "Camera de Comert  (Chamber of Commerce)" )
					say_auriu( "Bustean Fosila (Fossil Trunk) -> 625Yang/Buc(Piece)" )
					say( "" )
					say_galben( "(Ro)" )
					say_alb( "Doresti sa vinzi 200 bucati de minereu?" )
					say( "" )
					say_galben( "(En)" )
					say_alb( "Do you want to sell 200 pieces of ore?" )
					say( "" )
					say_reward( "BONUS: +5% Yang (Cantitate)" )
					say_reward( "MINEREURI: 125000 Yang" )
					say_reward( "TOTAL (BONUS + MINEREURI): 131250 (131.25k) Yang" )
					say_verde2( "Metin2-Server" )
						if select( "Da" , "Nu" ) == 1 then
							if pc.count_item(50608) < 200 then
							say_title( "Camera de Comert  (Chamber of Commerce)" )
							say( "" )
							say_galben( "(Ro)" )
							say_rosu( "Imposibil! Nu detineti toate articolele necesare, petru" )
							say_rosu( "a continua operatiunea." )
							say( "" )
							say_galben( "(En)" )
							say_rosu( "Impossible! You do not have all the necessary objects" )
							say_rosu( "to continue the operation." )
							say( "" )
							say( "" )
							say( "" )
							say( "" )
							say_verde2( "Metin2-Server" )
							return
							elseif pc.count_item(50608) >= 200 then
							say_title( "Camera de Comert  (Chamber of Commerce)" )
							say( "" )
							say_galben( "(Ro)" )
							say_verde2( "Articole vandute cu succes!" )
							say_verde2( "Suma de bani a fost adaugata contului dumneavoastra." )
							say( "" )
							say_galben( "(En)" )
							say_verde2( "Article sold successfully!" )
							say_verde2( "Money has been added to your account." )
							say( "" )
							say( "" )
							say( "" )
							say( "" )
							say_verde2( "Metin2-Server" )
							pc.remove_item("50608", 200)
							pc.change_gold(131250)
							end
						end
					end
					
					--JOS_SUNT_1000_BUC
					if (SelectChoiceAA == 3) then
					say_title( "Camera de Comert  (Chamber of Commerce)" )
					say_auriu( "Bustean Fosila (Fossil Trunk) -> 625Yang/Buc(Piece)" )
					say( "" )
					say_galben( "(Ro)" )
					say_alb( "Doresti sa vinzi 1000 bucati de minereu?" )
					say( "" )
					say_galben( "(En)" )
					say_alb( "Do you want to sell 1000 pieces of ore?" )
					say( "" )
					say_reward( "BONUS: +30% Yang (Cantitate)" )
					say_reward( "MINEREURI: 625000 Yang" )
					say_reward( "TOTAL (BONUS + MINEREURI): 812500 (812.5k) Yang" )
					say_verde2( "Metin2-Server" )
						if select( "Da" , "Nu" ) == 1 then
							if pc.count_item(50608) < 1000 then
							say_title( "Camera de Comert  (Chamber of Commerce)" )
							say( "" )
							say_galben( "(Ro)" )
							say_rosu( "Imposibil! Nu detineti toate articolele necesare, petru" )
							say_rosu( "a continua operatiunea." )
							say( "" )
							say_galben( "(En)" )
							say_rosu( "Impossible! You do not have all the necessary objects" )
							say_rosu( "to continue the operation." )
							say( "" )
							say( "" )
							say( "" )
							say( "" )
							say_verde2( "Metin2-Server" )
							return
							elseif pc.count_item(50608) >= 1000 then
							say_title( "Camera de Comert  (Chamber of Commerce)" )
							say( "" )
							say_galben( "(Ro)" )
							say_verde2( "Articole vandute cu succes!" )
							say_verde2( "Suma de bani a fost adaugata contului dumneavoastra." )
							say( "" )
							say_galben( "(En)" )
							say_verde2( "Article sold successfully!" )
							say_verde2( "Money has been added to your account." )
							say( "" )
							say( "" )
							say( "" )
							say( "" )
							say_verde2( "Metin2-Server" )
							pc.remove_item("50608", 1000)
							pc.change_gold(812500)
Ma ajuta cineva, multumesc?
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

Serios, chiar nu poate nimeni.
Deja cer ajutorul cu acest quest de o luna de zile... :|
Avatar utilizator
[RaffaeL]
Software Developer

Software Developer
Mesaje: 3223
Membru din: 19 Mar 2016, 12:58
Server: ...
Aprecieri: 15  
Mulţumiri: 2502  
  Rezolvări prob.: 2
Discord: Copiază ID
 Contact:
Medalii

t4zu scrie:Serios, chiar nu poate nimeni.
Deja cer ajutorul cu acest quest de o luna de zile... :|
Poftim:

Am copiat acel segment de vreo 3 ori, si m-am plictisit...continui tu.
Nu am modificat mare lucru, poate doar putin pe la asezare, si am scos string-urile inutile.
Daca esti atent la tag-urile pe care le-am pus pe acolo, vei reusi.

Bafta.
Imagine
Imagine
https://www.youtube.com/watch?v=GhYkCIETEto
Do everything, if you know what you're doing, else... Imagine
Ma gasesti si aici: Discord https://discord.gg/5J5GnyZVSR
Afișează semnătura
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

Multumesc, o sa verific saptamana viitoare.
Cer sa nu se inchida topicul 5-6 zile, mulumesc!
Avatar utilizator
[ST]SSH
Membru Club

Membru Club
Mesaje: 1704
Membru din: 12 Apr 2016, 23:54
Server: Fost Eluria2
Regat: Jinno
Aprecieri: 132  
Mulţumiri: 245  
 Contact:
Medalii

Arhivat!
Închis
Răspunsuri
5
Vizualizări
468
Răspunsuri
4
Vizualizări
157
Răspunsuri
1
Vizualizări
251

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

  • Informaţie
  • Cine este conectat

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