Jump to content
  • 0

problem mounts time



Well dev, actually i have the next problem:


I need to put a maximum time on a mount, when i add time to the seal, with the food of the mounts.


Btw i dont know how to do.


This is my quest:

			local comida_monturas = { {38100, 7}, {38101, 15}, {38102, 30}}

			if item.get_socket(0) == 1412419200 then
				say("Lo siento, tienes el maximo de tiempo en la montura, espera a que descienda")

			---say(" "..item.get_socket(0))
			say("Con esta comida, podras ampliar el tiempo de Vida de tu montura ")

				local prueba = select("SuperComida 7 Dias", "SuperComida 15 Dias", "SuperComida 30 dias", "Salir")

				if prueba != 4 then

						local a = comida_monturas[prueba][2]
						local c = comida_monturas[prueba][1]

				local b = 60*60*24
				local d = item.get_socket(0)

					if pc.count_item(c) >= 1 then

						if item.get_socket(0) + (comida_monturas[prueba][2]*(60*60*24)) <= 1412419200 then

							say("Con esta comida, tu montura ")
							say("aumentara su vida por "..a.." Días")
							say("¿Quieres continuar?")

								local e = select("Si", "No")
									if e == 1 then

									item.set_socket(0, d + a*
									pc.remove_item(c, 1)
									say("Tu montura , tiene "..a.." Días más de Vida.")

									elseif e == 2 then

							say("Lo siento, el tiempo actual con el de el objeto supera el limite")
						say("Lo siento, requieres de comida para continuar")				

Any idea?


PD: this don't work, so help me


Link to comment
Share on other sites

  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Activity

    1. 7

      Metin2 2003 Beta Client!!!!!

    2. 32

      Boss Effect Over Head

    3. 1

      Open Source API for Metin2 Server Management - Early Development

    4. 0

      Official Item Combination [18.4]

    5. 2

      Proper SIGNAL management for Windows

    6. 2

      Proper SIGNAL management for Windows

    7. 4

      syserr erorr ( not working OK button on client )

  • Recently Browsing

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

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.