Jump to content

[RELEASE]Mount Gui


-YC-

Mensajes recomendados

Hola que tal, bueno he hecho un gui de monturas para mi servidor pero no lo termine y bueno lo vengo a postear el sistema es mio, el diseño no XD es del age of zaira, quien guste cambiarlo lo cambia dejo imagenes:

 

zCkzLwO.jpg

 

ustedes en la quest le aumentan los guis, solo ponen el nombre del .tga sin el .tga XD

 

No es nada del otro mundo :v

 

Descarga:

Debes iniciar sesión para ver el contenido del enlace en esta publicación.
Enlace para comentar
Compartir en otros sitios

Gracias por el aporte se agradece! 

 

Lo acabo de implementar todo y en el sysser del channel1/core1 me acaba de salir esto y no ha funcionado no aparece ningún gui ni nada.

SYSERR: Jan 13 17:49:30 :: RunState: LUA_ERROR: [string "gui_monturas_yc"]:13: attempt to index global `new_mount' (a nil value) WITH ERRORCODE 1
SYSERR: Jan 13 17:49:30 :: RunState: LUA_STATE: index 0 ref 3
SYSERR: Jan 13 17:49:30 :: WriteRunningStateToSyserr: LUA_ERROR: quest gui_monturas_yc.start click
SYSERR: Jan 13 17:49:36 :: RunState: LUA_ERROR: [string "gui_monturas_yc"]:11: attempt to index global `new_mount' (a nil value) WITH ERRORCODE 1
SYSERR: Jan 13 17:49:36 :: RunState: LUA_STATE: index 0 ref 3
SYSERR: Jan 13 17:49:36 :: WriteRunningStateToSyserr: LUA_ERROR: quest gui_monturas_yc.start click
SYSERR: Jan 13 17:49:42 :: RunState: LUA_ERROR: [string "gui_monturas_yc"]:11: attempt to index global `new_mount' (a nil value) WITH ERRORCODE 1
SYSERR: Jan 13 17:49:42 :: RunState: LUA_STATE: index 0 ref 3
SYSERR: Jan 13 17:49:42 :: WriteRunningStateToSyserr: LUA_ERROR: quest gui_monturas_yc.start click
SYSERR: Jan 13 17:49:43 :: RunState: LUA_ERROR: [string "gui_monturas_yc"]:11: attempt to index global `new_mount' (a nil value) WITH ERRORCODE 1
SYSERR: Jan 13 17:49:43 :: RunState: LUA_STATE: index 0 ref 3
SYSERR: Jan 13 17:49:43 :: WriteRunningStateToSyserr: LUA_ERROR: quest gui_monturas_yc.start click
SYSERR: Jan 13 17:49:50 :: SpawnMob: SpawnMob: no mob data for vnum 23779
SYSERR: Jan 13 17:49:53 :: locale_find: LOCALE_ERROR: "ÀÌ¹Ì Å»°ÍÀ» ÀÌ¿ëÁßÀÔ´Ï´Ù.";
SYSERR: Jan 13 17:49:54 :: locale_find: LOCALE_ERROR: "ÀÌ¹Ì Å»°ÍÀ» ÀÌ¿ëÁßÀÔ´Ï´Ù.";
SYSERR: Jan 13 17:50:00 :: RunState: LUA_ERROR: [string "gui_monturas_yc"]:11: attempt to index global `new_mount' (a nil value) WITH ERRORCODE 1
SYSERR: Jan 13 17:50:00 :: RunState: LUA_STATE: index 0 ref 3
SYSERR: Jan 13 17:50:00 :: WriteRunningStateToSyserr: LUA_ERROR: quest gui_monturas_yc.start click

Haber si alguien podría ayudar :D

Enlace para comentar
Compartir en otros sitios

que esta mal aqui??

 

Es que no soy un pro en quest.

 

Pensé que era el "if !pc.. " que estaba mal y le quite el " ! " y no anda esta igual que antes xD

 

when montar.loop_timer está mal, es when montar.timer

y tambien el !pc.is_mount está mal, no busque la solucion a tu error, simplemente abrí la quest y vi eso, y lo puse dado que está mal.

Enlace para comentar
Compartir en otros sitios

when montar.loop_timer está mal, es when montar.timer

y tambien el !pc.is_mount está mal, no busque la solucion a tu error, simplemente abrí la quest y vi eso, y lo puse dado que está mal.

Sigue sin salirme la "gui"

 

Tengo este error en el sysser channel1/core1:

SYSERR: Jan 14 13:19:09 :: RunState: LUA_ERROR: [string "gui_monturas_yc"]:13: attempt to index global `new_mount' (a nil value) WITH ERRORCODE 1
SYSERR: Jan 14 13:19:09 :: RunState: LUA_STATE: index 0 ref 3
SYSERR: Jan 14 13:19:09 :: WriteRunningStateToSyserr: LUA_ERROR: quest gui_monturas_yc.start click
SYSERR: Jan 14 13:19:19 :: RunState: LUA_ERROR: [string "gui_monturas_yc"]:11: attempt to index global `new_mount' (a nil value) WITH ERRORCODE 1
SYSERR: Jan 14 13:19:19 :: RunState: LUA_STATE: index 0 ref 3
SYSERR: Jan 14 13:19:19 :: WriteRunningStateToSyserr: LUA_ERROR: quest gui_monturas_yc.start click
SYSERR: Jan 14 13:19:31 :: SpawnMob: SpawnMob: no mob data for vnum 23779

Creo que es esto en la quest:

			new_mount.podkresl()

nose que coño significa.

 

Aqui está la quest completa de como la tengo:

 

 

 

quest gui_monturas_yc begin
	state start begin
		function yhair_gui()
			local self = 
			{
				-- [Vnum del item] = {"Bonus 1", "Bonus 2", "Bonus 3", "Imagen que se cargara en cliente"}
				[71114] = {"HP: +100", "Fuerza vs Mounstros: 10%", "Defensa: 75", "dzik"},
				[71116] = {"HP: +150", "Fuerza vs Mounstros: 15%", "Defensa: 100", "wilk"},
				[71118] = {"HP: +200", "Fuerza vs Mounstros: 20%", "Defensa: 125", "tygrys"},
				[71120] = {"HP: +350", "Fuerza vs Mounstros: 25%", "Defensa:175", "lew"},
				[71124] = {"HP: +500", "Fuerza vs Mounstros: 30%", "Exp: 30%", "lodowy_lew"},
				[71125] = {"HP: +650", "Fuerza vs Mounstros: 35%", "Valor de ataq. + 20%", "dzik_cienia"},
				[71126] = {"HP: +750", "Fuerza vs Mounstros: 40%", "Golpe Critico +15%", "wilk_cienia"},
				[71127] = {"HP: +850", "Fuerza vs Mounstros: 45%", "Golpe Critico +20%", "tygrys_cienia"},
				[71128] = {"HP: +950", "Fuerza vs Mounstros: 50%", "Resistencia al veneno: 10%", "lew_cienia"},
				[71172] = {"Defensa: 150","Critico 10%","Fuerza vs Mounstros 50%","pesadilla_bg"},
				}
			local item_vnum = pc.getqf("usaritem")
			cmdchat("MonturaData "..string.gsub(self[item_vnum][1], ' ', '_').."|"..string.gsub(self[item_vnum][2], ' ', '_').."|"..string.gsub(self[item_vnum][3], ' ', '_').."|"..self[item_vnum][4])
			cmdchat("MonturaShow")
			pc.setqf("nomontar", 0)
			pc.setqf("nomontar", 0)
			timer("montar", 2)
		end
		when 71114.use begin
			if pc.is_riding() then
				horse.unride()
			end
			if horse.is_summon() then	
				horse.unsummon()	
			end
			pc.setqf("usaritem", item.vnum)
			affect.add_collect(apply.MAX_HP,100,60*1)
			affect.add_collect(apply.ATTBONUS_MONSTER,10,60*1)
			affect.add_collect(apply.DEF_GRADE_BONUS,75,60*1)
			new_mount.yhair_gui()
		end
		when 71116.use begin
			if pc.is_riding() then
				horse.unride()
			end
			if horse.is_summon() then	
				horse.unsummon()	
			end
			pc.setqf("usaritem", item.vnum)
			affect.add_collect(apply.MAX_HP,150,60*1)
			affect.add_collect(apply.ATTBONUS_MONSTER,15,60*1)
			affect.add_collect(apply.DEF_GRADE_BONUS,100,60*1)
			new_mount.yhair_gui()				 
		end
		when 71118.use begin
			if pc.is_riding() then
				horse.unride()
			end
			if horse.is_summon() then	
				horse.unsummon()	
			end
			pc.setqf("usaritem", item.vnum)
			affect.add_collect(apply.MAX_HP,200,60*1)
			affect.add_collect(apply.ATTBONUS_MONSTER,20,60*1)
			affect.add_collect(apply.DEF_GRADE_BONUS,125,60*1)
			new_mount.yhair_gui()				 
		end
		when 71120.use begin
			if pc.is_riding() then
				horse.unride()
			end
			if horse.is_summon() then	
				horse.unsummon()	
			end
			pc.setqf("usaritem", item.vnum)
			affect.add_collect(apply.MAX_HP,350,60*1)
			affect.add_collect(apply.ATTBONUS_MONSTER,25,60*1)
			affect.add_collect(apply.DEF_GRADE_BONUS,175,60*1)
			new_mount.yhair_gui()
		end
		when 71124.use begin
			if pc.is_riding() then
				horse.unride()
			end
			if horse.is_summon() then	
				horse.unsummon()	
			end
			pc.setqf("usaritem", item.vnum)
			affect.add_collect(apply.MAX_HP,500,60*1)
			affect.add_collect(apply.ATTBONUS_MONSTER,30,60*1)
			affect.add_collect(apply.EXP_DOUBLE_BONUS,30,60*1)
			new_mount.yhair_gui()	
		end
		when 71125.use begin  
			if pc.is_riding() then
				horse.unride()
			end
			if horse.is_summon() then	
				horse.unsummon()	
			end
			pc.setqf("usaritem", item.vnum)
			affect.add_collect(apply.MAX_HP,650,60*1)
			affect.add_collect(apply.ATTBONUS_MONSTER,35,60*1)
			affect.add_collect(apply.ATT_GRADE_BONUS,20,60*1)
			new_mount.yhair_gui()				 
		end
		when 71126.use begin
			if pc.is_riding() then
				horse.unride()
			end
			if horse.is_summon() then	
				horse.unsummon()	
			end
			pc.setqf("usaritem", item.vnum)
			affect.add_collect(apply.MAX_HP,750,60*1)
			affect.add_collect(apply.ATTBONUS_MONSTER,40,60*1)
			affect.add_collect(apply.CRITICAL_PCT,15,60*1)
			new_mount.yhair_gui()				 
		end
		when 71127.use begin
			if pc.is_riding() then
				horse.unride()
			end
			if horse.is_summon() then	
				horse.unsummon()	
			end
			pc.setqf("usaritem", item.vnum)
			affect.add_collect(apply.MAX_HP,850,60*1)
			affect.add_collect(apply.ATTBONUS_MONSTER,45,60*1)
			affect.add_collect(apply.CRITICAL_PCT,20,60*1)
			new_mount.yhair_gui()				 
		end
		when 71128.use begin
			if pc.is_riding() then
				horse.unride()
			end
			if horse.is_summon() then	
				horse.unsummon()	
			end
			pc.setqf("usaritem", item.vnum)
			affect.add_collect(apply.MAX_HP,950,60*1)
			affect.add_collect(apply.ATTBONUS_MONSTER,50,60*1)
			affect.add_collect(apply.POISON_PCT,10,60*1)
			new_mount.yhair_gui()	
		end
		when 71172.use begin
			if pc.is_riding() then
				horse.unride()
			end
			if horse.is_summon() then	
				horse.unsummon()	
			end
			pc.setqf("usaritem", item.vnum)
			affect.add_collect(apply.CRITICAL_PCT,10,60*1)
			affect.add_collect(apply.ATTBONUS_MONSTER,50,60*1)
			affect.add_collect(apply.DEF_GRADE_BONUS,150,60*1)
			new_mount.yhair_gui()	
		end
		when tiempomount.timer begin
			if pc.is_riding() then
				horse.unride()
			end
			if horse.is_summon() then	
				horse.unsummon()	
			end
			if pc.is_polymorphed() then
				if pc.get_sex() == 0 then
					chat("No puedes montar si estas transformado.")
				else
					chat("No puedes montar si has cambiado de genero.")
				end
			else
				if item.select_cell(97) then
					if item.get_vnum() == 71114 then
					elseif item.get_vnum() == 71116 then
					elseif item.get_vnum() == 71118 then
					elseif item.get_vnum() == 71120 then
					elseif item.get_vnum() == 71124 then
					elseif item.get_vnum() == 71125 then
					elseif item.get_vnum() == 71126 then
					elseif item.get_vnum() == 71127 then
					elseif item.get_vnum() == 71128 then
					elseif item.get_vnum() == 71172 then
					end
					new_mount.yhair_gui()
				end
				if item.select_cell(97) then
					if item.get_vnum() == 71114 then
					elseif item.get_vnum() == 71116 then
					elseif item.get_vnum() == 71118 then
					elseif item.get_vnum() == 71120 then
					elseif item.get_vnum() == 71124 then
					elseif item.get_vnum() == 71125 then
					elseif item.get_vnum() == 71126 then
					elseif item.get_vnum() == 71127 then
					elseif item.get_vnum() == 71128 then
					elseif item.get_vnum() == 71172 then
					end
					new_mount.yhair_gui()
					end
				end
			end
		when login begin
			if item.select_cell(97) then
				if item.get_vnum() >= 71114 and item.get_vnum() <= 71172 then
					timer("tiempomount", 1)
					new_mount.yhair_gui()
				end
			end
			if item.select_cell(98) then
				if item.get_vnum() >= 71114 and  item.get_vnum() <= 71172 then
					timer("tiempomount", 1)
					new_mount.yhair_gui()
				end
			end
			new_mount.podkresl()
		end
		when montar.timer begin
			if pc.is_mount() and pc.getqf("nomontar") == 0 then
				cmdchat("MonturaHide")
				pc.setqf("nomontar", 1)
				cleartimer("montar")
			end
		end
		when logout begin
			cmdchat("MonturaHide")
			pc.setqf("nomontar", 1)
		end
	end        
end

 

 

Enlace para comentar
Compartir en otros sitios

Listo, muchisimas gracias por la ayuda!!

 

PD: No me monta el pj.

SYSERR: Jan 14 14:31:52 :: WriteRunningStateToSyserr: LUA_ERROR: quest new_mount.start click
SYSERR: Jan 14 14:32:22 :: RunState: LUA_ERROR: locale/germany/quest/object/state/ride:3: attempt to index field `?' (a nil value) WITH ERRORCODE 1

SYSERR: Jan 14 14:37:11 :: WriteRunningStateToSyserr: LUA_ERROR: quest ride.start click
SYSERR: Jan 14 14:37:14 :: RunState: LUA_ERROR: locale/germany/quest/object/state/ride:3: attempt to index field `?' (a nil value) WITH ERRORCODE 1
SYSERR: Jan 14 14:37:14 :: RunState: LUA_STATE: index 0 ref 3

Porque puede ser?

Enlace para comentar
Compartir en otros sitios

Unirse a la conversación

Puedes publicar ahora y registrarte más tarde. Si tienes una cuenta, regístrate para publicar con su cuenta.

Guest
Responder a este tema...

×   Has pegado contenido con formato .   Eliminar formato

  Only 75 emoji are allowed.

×   Tu enlace se ha incorporado automáticamente.   Mostrar un enlace en su lugar

×   Se ha restaurado el contenido anterior. .   Borrar editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recientemente navegando por este tema   0 miembros

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