Jump to content

Recommended Posts

Posted

Hola, perdon por molestarlos nuevamente pero quiero saber que le falta a la quest o que tiene de mas porque me salta core dumped, les dejare una imagen :D

 

Imagen: 

 

Imagen enviada

 

Quest:

 

 

 

--------------------------------------------------------------------------Quest Exp comerciable By Juan14bailen------------------------------------------------------------------------quest comercioexp beginstate start beginwhen login or levelup with pc.level >= 100      when letter beginsend_letter ( "Exp Por Dinero" )when button or info beginsay ( "Aqui estan los precios." )say ( "100kk Exp = 100kk Yang" )say ( "150kk Exp = 150kk Yang" )say ( "200kk Exp = 200kk Yang" )say ( "500kk Exp = 500kk Yang" )local exp = select ( "100kk Exp" , "150kk Exp" , "200kk Exp" , "500kk Exp" , "No necesito Exp!" )elseif exp == 1 thensay ( "Has comprado 100kk de Exp" )say ( "Muy bien" )say_reward ("Buena Suerte!")pc . changegold ( - 100000000  )pc . give_exp2 ( 100000000 )returnendelseif exp == 2 thensay ( "Has cojido 150kk exp" )say ( "Has cojido 150kk exp por 150kk de yang!" )say _reward( "Buena Suerte!" )pc . changegold ( - 150000000  )pc . give_exp2 ( 150000000 )returnendelseif exp == 3 thensay ( "Has cojido 200kk exp" )say ( "Recibiras 200kk exp por 200kk yang!" )say _reward( "Buena Suerte!" )pc . changegold ( - 200000000  )pc . give_exp2 ( 200000000 )returnendelseif exp == 4 thensay ( "Has cojido 500kk" )say ( "Recibiras 500kk exp por 500kk yang" )say _reward( "Buena Suerte!" )pc . changegold ( - 500000000  )pc . give_exp2 ( 500000000 )returnendelseif exp == 5 thenreturn end 

 

 

 

Espero me puedan ayudar. 

 

Gracias de ante mano :D

Posted
when login or levelup with pc.level >= 100

por

when login or levelup with pc.level >= 100 begin

Ya he probado cambiar eso pero da un error en el return

Posted
--------------------------------------------------------------------------Quest Exp comerciable By Juan14bailen------------------------------------------------------------------------quest comercioexp begin	state start begin		when login or levelup with pc.level >= 100			set_state("exp")		end        state exp begin		when letter begin			send_letter("Exp Por Dinero")		end		when button or info begin			say("Aqui estan los precios." )			say("100kk Exp = 100kk Yang" )			say("150kk Exp = 150kk Yang" )			say("200kk Exp = 200kk Yang" )			say("500kk Exp = 500kk Yang" )			local exp = select ( "100kk Exp" , "150kk Exp" , "200kk Exp" , "500kk Exp" , "No necesito Exp!" )			if exp == 1 then				if pc.get_gold < 100000000 then					say("No tienes suficiente yang.")					return				end				say("Has comprado 100kk de Exp")				say("Muy bien")				say_reward("Buena Suerte!")				pc.changegold(-100000000)				pc.give_exp2( 100000000 )				return			end			elseif exp == 2 then				if pc.get_gold < 150000000 then					say("No tienes suficiente yang.")					return				end				say("Has cojido 150kk exp")				say("Has cojido 150kk exp por 150kk de yang!")				say_reward("Buena Suerte!")				pc.changegold(-150000000)				pc.give_exp2(150000000)				return			end			elseif exp == 3 then				if pc.get_gold < 200000000 then					say("No tienes suficiente yang.")					return				end							say("Has cojido 200kk exp")				say("Recibiras 200kk exp por 200kk yang!")				say_reward("Buena Suerte!")				pc.changegold(-200000000)				pc.give_exp2(200000000)				return			end			elseif exp == 4 then				if pc.get_gold < 500000000 then					say("No tienes suficiente yang.")					return				end							say("Has cojido 500kk")				say("Recibiras 500kk exp por 500kk yang")				say_reward("Buena Suerte!")				pc.changegold(-500000000)				pc.give_exp2(500000000)				return			end			elseif exp == 5 then				return 			end		end	endend

Te la mejoré un poco, le puse que si no tenias suficiente yang que lo dijera.

 

Dime si te funcionó, no la he probado.

Posted
--------------------------------------------------------------------------Quest Exp comerciable By Juan14bailen------------------------------------------------------------------------quest comercioexp begin	state start begin		when login or levelup with pc.level >= 100 begin			set_state("exp")		end        state exp begin		when letter begin			send_letter("Exp Por Dinero")		end		when button or info begin			say("Aqui estan los precios." )			say("100kk Exp = 100kk Yang" )			say("150kk Exp = 150kk Yang" )			say("200kk Exp = 200kk Yang" )			say("500kk Exp = 500kk Yang" )			local exp = select ( "100kk Exp" , "150kk Exp" , "200kk Exp" , "500kk Exp" , "No necesito Exp!" )			if exp == 1 then				if pc.get_gold < 100000000 then					say("No tienes suficiente yang.")					return				end				say("Has comprado 100kk de Exp")				say("Muy bien")				say_reward("Buena Suerte!")				pc.changegold(-100000000)				pc.give_exp2( 100000000 )				return						elseif exp == 2 then				if pc.get_gold < 150000000 then					say("No tienes suficiente yang.")					return				end				say("Has cojido 150kk exp")				say("Has cojido 150kk exp por 150kk de yang!")				say_reward("Buena Suerte!")				pc.changegold(-150000000)				pc.give_exp2(150000000)				return						elseif exp == 3 then				if pc.get_gold < 200000000 then					say("No tienes suficiente yang.")					return				end							say("Has cojido 200kk exp")				say("Recibiras 200kk exp por 200kk yang!")				say_reward("Buena Suerte!")				pc.changegold(-200000000)				pc.give_exp2(200000000)				return						elseif exp == 4 then				if pc.get_gold < 500000000 then					say("No tienes suficiente yang.")					return				end							say("Has cojido 500kk")				say("Recibiras 500kk exp por 500kk yang")				say_reward("Buena Suerte!")				pc.changegold(-500000000)				pc.give_exp2(500000000)				return						elseif exp == 5 then				return 			end		end	endend
Posted

 

 

--------------------------------------------------------------------------Quest Exp comerciable By Juan14bailen------------------------------------------------------------------------quest comercioexp begin	state start begin		when login or levelup with pc.level >= 100 begin			set_state("exp")		end        state exp begin		when letter begin			send_letter("Exp Por Dinero")		end		when button or info begin			say("Aqui estan los precios." )			say("100kk Exp = 100kk Yang" )			say("150kk Exp = 150kk Yang" )			say("200kk Exp = 200kk Yang" )			say("500kk Exp = 500kk Yang" )			local exp = select ( "100kk Exp" , "150kk Exp" , "200kk Exp" , "500kk Exp" , "No necesito Exp!" )			if exp == 1 then				if pc.get_gold < 100000000 then					say("No tienes suficiente yang.")					return				end				say("Has comprado 100kk de Exp")				say("Muy bien")				say_reward("Buena Suerte!")				pc.changegold(-100000000)				pc.give_exp2( 100000000 )				return						elseif exp == 2 then				if pc.get_gold < 150000000 then					say("No tienes suficiente yang.")					return				end				say("Has cojido 150kk exp")				say("Has cojido 150kk exp por 150kk de yang!")				say_reward("Buena Suerte!")				pc.changegold(-150000000)				pc.give_exp2(150000000)				return						elseif exp == 3 then				if pc.get_gold < 200000000 then					say("No tienes suficiente yang.")					return				end							say("Has cojido 200kk exp")				say("Recibiras 200kk exp por 200kk yang!")				say_reward("Buena Suerte!")				pc.changegold(-200000000)				pc.give_exp2(200000000)				return						elseif exp == 4 then				if pc.get_gold < 500000000 then					say("No tienes suficiente yang.")					return				end							say("Has cojido 500kk")				say("Recibiras 500kk exp por 500kk yang")				say_reward("Buena Suerte!")				pc.changegold(-500000000)				pc.give_exp2(500000000)				return						elseif exp == 5 then				return 			end		end	endend

 

 

 

Gracias pero me salio este error:

 

Imagen:

 

Imagen enviada

 

Me falta la funcion: expecting? 

  • Dilong locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies to enhance your browsing experience and provide relevant content. By continuing to browse, you agree to our We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. and Terms of Use. For more information on how we protect your data, please check our Privacy Policy.