Jump to content

correcion de quest banco


mrsanty

Mensajes recomendados

hola todos me podrían decir que esta mal de esta quest. 

les explico cuando la le doy depositar yang me da el item pero cuando le doy extraer no me saca el item.

la quest es esta

 

quest banco begin	state start begin		when 20094.chat."Retirar Yang" begin			say("Hola, "..pc.get_name().."")			say("¿Cuanto quieres retirar?")			local cantidad = select ("500kk", "1kkk", "1.5kkk", "Salir")			if cantidad == 1 then				if pc.get_gold() >= 500000000 then					say("Para retirar 500kk,")					say("debes tener un máximo de 1.499.999.999 yangs.")				elseif pc.count_item(80005) == 0 then					say("Necesitas este ítem para retirar el dinero.")					say_item_vnum(80005)				elseif pc.get_gold() < 1499999999 and pc.count_item(8005) > 0 then					pc.remove_item(80005, 1)					chat("¡Has retirado 500kk con éxito!")					pc.changegold(500000000)				end			elseif cantidad == 2 then				if pc.get_gold() >= 1000000000 then					say("Para retirar 1kkk,")					say("debes tener un máximo de 999.999.999 yangs.")				elseif pc.count_item(80006) == 0 then					say("Necesitas este ítem para retirar el dinero.")					say_item_vnum(80006)				elseif pc.get_gold() < 999999999 and pc.count_item(8006) > 0 then					pc.remove_item(80006, 1)					chat("¡Has retirado 1kkk con éxito!")					pc.changegold(1000000000)				end			elseif cantidad == 3 then				if pc.get_gold() >= 1500000000 then					say("Para retirar 1.5kk5,")					say("debes tener un máximo de 499.999.999 yangs.")				elseif pc.count_item(80007) == 0 then					say("Necesitas este ítem para retirar el dinero.")					say_item_vnum(80007)				elseif pc.get_gold() < 499999999 and pc.count_item(8007) > 0 then					pc.remove_item(80007, 1)					chat("¡Has retirado 1.5kkk con éxito!")					pc.changegold(1500000000)				end			end			if cantidad == 4 then				return			end		end		when 20094.chat."Depositar Yang" begin			say("Hola, "..pc.get_name().."")			say("¿Cuanto quieres depositar?")			local cheque = select ("500kk", "1kkk", "1.5kkk", "Salir")			if cheque == 1 then				if pc.get_gold() < 500000000 then					say("Necesitas 500kk para recibir el cheque")				elseif pc.get_gold() >= 500000000 then					pc.changegold(-500000000)					pc.give_item2(80005, 1)				end			elseif cheque == 2 then				if pc.get_gold() < 1000000000 then					say("Necesitas 1kkk para recibir el cheque")				elseif pc.get_gold() >= 1000000000 then					pc.changegold(-1000000000)					pc.give_item2(80006, 1)				end			elseif cheque == 3 then				if pc.get_gold() < 1500000000 then					say("Necesitas 1.5kkk para recibir el cheque")				elseif pc.get_gold() >= 1500000000 then					pc.changegold(-1500000000)					pc.give_item2(80007, 1)				end			end		end				when 20094.chat."Información al cliente" begin			say("Hola, "..pc.get_name().."")			say("¿Necesitas información?")			say("dime sobre quequieres información")			local info = select ("Cheques", "Posibles problemas", "Nada, gracias")			if info == 1 then				say("Información al cliente")				say("Aqu?tienes la información de cheques")				say_item_vnum(80005)				say("Valor: 500kk")				wait()				say("")				say_item_vnum(80006)				say("Valor: 1kkk")				wait()				say("")				say_item_vnum(80007)				say("Valor: 1.5kkk")			elseif info == 2 then				say("Información al cliente")				say("")				say("Nuestros servicios han sido perfeccionados nuevamente")				say("no hay ningún problema con el yang")				say("tanto a la hora de retirar")				say("como a la hora de ingresar")			elseif info == 3 then				return			end		end	endend

 

Enlace para comentar
Compartir en otros sitios

  • Dilong locked this tema
Guest
Este tema está cerrado a otras respuestas.
  • Recientemente navegando por este tema   0 miembros

    • No hay usuarios registrados visitando esta página.
×
×
  • Crear nuevo...