Syserr quest

Totalitatea subiectelor care nu respectă regulamentul impus in sectiunea "Probleme şi Întrebări" vor fi stocate aici.
Închis
Avatar utilizator
SussyFlore
Nivel 4

Nivel 4
Mesaje: 675
Membru din: 14 Sep 2014, 13:14
Regat: Jinno
Aprecieri: 272  
Mulţumiri: 50  
Discord: Copiază ID
 Contact:
Medalii

*Problemă: Salut! Am o problema cu un quest de mount.
Tipologie server: 40k
*Resursă folosită:
*ServerFiles utilizat: http://just4metin.ro/serverfiles/2009-4 ... 58966.html
*Syserr: Imagine Poză:
*Detalii suplimentare:

Quest:
Avatar utilizator
yonr1
Nivel 4

Nivel 4
Mesaje: 677
Membru din: 03 Dec 2013, 08:42
Aprecieri: 297  
Mulţumiri: 30  
  Rezolvări prob.: 14
Medalii

Ai incercat si alt quest ?

http://just4metin.ro/quest-uri/mounturi ... t6443.html
size=85][ Postat de pe Android ][/size] Imagine
Imagine
Afișează semnătura
Avatar utilizator
SussyFlore
Nivel 4

Nivel 4
Mesaje: 675
Membru din: 14 Sep 2014, 13:14
Regat: Jinno
Aprecieri: 272  
Mulţumiri: 50  
Discord: Copiază ID
 Contact:
Medalii

yonr1 scrie:Ai incercat si alt quest ?

http://just4metin.ro/quest-uri/mounturi ... t6443.html
size=85][ Postat de pe Android ][/size] Imagine
Da, cu asta se face bug, am sistemul prin care mount-ul te urmareste ca un cal.
Avatar utilizator
yonr1
Nivel 4

Nivel 4
Mesaje: 677
Membru din: 03 Dec 2013, 08:42
Aprecieri: 297  
Mulţumiri: 30  
  Rezolvări prob.: 14
Medalii

Cod: Selectaţi tot

quest mount_system begin
	state start begin
		when 71124.use begin
			horse.set_appearance(20114)
			if pc.is_polymorphed() then
				 syschat("Nu poti calarii cat esti transformat.")
			elseif pc.is_riding() then
				 syschat("Nu poti invoca un mount cat timp calaresti!")
			else
				if true == horse.is_summon() then
					horse.unsummon()
				else
					horse.summon()
				end
			end
		end

		when 71125.use begin
			horse.set_appearance(20115)
			if pc.is_polymorphed() then
				 syschat("Nu poti calarii cat esti transformat.")
			elseif pc.is_riding() then
				 syschat("Nu poti invoca un mount cat timp calaresti!")
			else
				if true == horse.is_summon() then
					horse.unsummon()
				else
					horse.summon()
				end
			end
		end

		when 71126.use begin
			horse.set_appearance(20116)
			if pc.is_polymorphed() then
				 syschat("Nu poti calarii cat esti transformat.")
			elseif pc.is_riding() then
				 syschat("Nu poti invoca un mount cat timp calaresti!")
			else
				if true == horse.is_summon() then
					horse.unsummon()
				else
					horse.summon()
				end
			end
		end

		when 71127.use begin
			horse.set_appearance(20117)
			if pc.is_polymorphed() then
				 syschat("Nu poti calarii cat esti transformat.")
			elseif pc.is_riding() then
				 syschat("Nu poti invoca un mount cat timp calaresti!")
			else
				if true == horse.is_summon() then
					horse.unsummon()
				else
					horse.summon()
				end
			end
		end

		when 71128.use begin
			horse.set_appearance(20118)
			if pc.is_polymorphed() then
				 syschat("Nu poti calarii cat esti transformat.")
			elseif pc.is_riding() then
				 syschat("Nu poti invoca un mount cat timp calaresti!")
			else
				if true == horse.is_summon() then
					horse.unsummon()
				else
					horse.summon()
				end
			end
		end

		when 71131.use begin
			horse.set_appearance(20119)
			if pc.is_polymorphed() then
				 syschat("Nu poti calarii cat esti transformat.")
			elseif pc.is_riding() then
				 syschat("Nu poti invoca un mount cat timp calaresti!")
			else
				if true == horse.is_summon() then
					horse.unsummon()
				else
					horse.summon()
				end
			end
		end

		when 71161.use begin
			horse.set_appearance(20219)
			if pc.is_polymorphed() then
				 syschat("Nu poti calarii cat esti transformat.")
			elseif pc.is_riding() then
				 syschat("Nu poti invoca un mount cat timp calaresti!")
			else
				if true == horse.is_summon() then
					horse.unsummon()
				else
					horse.summon()
				end
			end
		end
	end
end

Cod: Selectaţi tot

quest ride begin
	state start begin
		function Ride( vnum, remain_time )
			ride_info = {
				[71137] = { 20120,	5*60,	apply.MOV_SPEED, 0,	1,	false,	false,	false},
				[71138] = { 20121,	5*60,	apply.MOV_SPEED, 0,	1,	false,	false,	false},
				[71139] = { 20122,	5*60,	apply.MOV_SPEED, 0,	1,	false,	false,	false},
				[71140] = { 20123,	5*60,	apply.MOV_SPEED, 0,	1,	false,	false,	false},
				[71141] = { 20124,	5*60,	apply.MOV_SPEED, 0,	1,	false,	false,	false},
				[71142] = { 20125,	5*60,	apply.MOV_SPEED, 0,	1,	false,	false,	false},
			}

			if pc.level < ride_info[vnum][5] then
				syschat("Your level is too low to use this mount.")
			else
				if ride_info[vnum][2] == 0 and remain_time != 0 then
					pc.mount( ride_info[vnum][1], remain_time*60 )
					pc.mount_bonus( ride_info[vnum][3], ride_info[vnum][4], remain_time*60 )
				else
					pc.mount( ride_info[vnum][1], ride_info[vnum][2] )
					pc.mount_bonus( ride_info[vnum][3], ride_info[vnum][4], ride_info[vnum][2] )
				end

				if true == ride_info[vnum][6] then
					pc.remove_item(vnum, 1)
				end	
			end	
		end

		when login begin
			local vnum, remain_time = pc.get_special_ride_vnum()
			if vnum != 0 then
				ride.Ride(vnum, remain_time)
			end
		end

		when 71137.use or 71138.use or 71139.use or 71140.use or 71141.use or 71142.use begin
			if pc.is_polymorphed() then
				syschat("You can´t ride if you´re polymorphed!")
			else 
				if false == pc.is_riding() then
					if true == horse.is_summon() then
						horse.unsummon()
					end
					ride.Ride(item.vnum, 0)
				else
					pc.unmount()
				end
			end
		end
	end
end
Pentru acest mesaj, yonr1 for the post:
SussyFlore
Imagine
Afișează semnătura
Avatar utilizator
SussyFlore
Nivel 4

Nivel 4
Mesaje: 675
Membru din: 14 Sep 2014, 13:14
Regat: Jinno
Aprecieri: 272  
Mulţumiri: 50  
Discord: Copiază ID
 Contact:
Medalii

yonr1 scrie:

Cod: Selectaţi tot

quest mount_system begin
	state start begin
		when 71124.use begin
			horse.set_appearance(20114)
			if pc.is_polymorphed() then
				 syschat("Nu poti calarii cat esti transformat.")
			elseif pc.is_riding() then
				 syschat("Nu poti invoca un mount cat timp calaresti!")
			else
				if true == horse.is_summon() then
					horse.unsummon()
				else
					horse.summon()
				end
			end
		end

		when 71125.use begin
			horse.set_appearance(20115)
			if pc.is_polymorphed() then
				 syschat("Nu poti calarii cat esti transformat.")
			elseif pc.is_riding() then
				 syschat("Nu poti invoca un mount cat timp calaresti!")
			else
				if true == horse.is_summon() then
					horse.unsummon()
				else
					horse.summon()
				end
			end
		end

		when 71126.use begin
			horse.set_appearance(20116)
			if pc.is_polymorphed() then
				 syschat("Nu poti calarii cat esti transformat.")
			elseif pc.is_riding() then
				 syschat("Nu poti invoca un mount cat timp calaresti!")
			else
				if true == horse.is_summon() then
					horse.unsummon()
				else
					horse.summon()
				end
			end
		end

		when 71127.use begin
			horse.set_appearance(20117)
			if pc.is_polymorphed() then
				 syschat("Nu poti calarii cat esti transformat.")
			elseif pc.is_riding() then
				 syschat("Nu poti invoca un mount cat timp calaresti!")
			else
				if true == horse.is_summon() then
					horse.unsummon()
				else
					horse.summon()
				end
			end
		end

		when 71128.use begin
			horse.set_appearance(20118)
			if pc.is_polymorphed() then
				 syschat("Nu poti calarii cat esti transformat.")
			elseif pc.is_riding() then
				 syschat("Nu poti invoca un mount cat timp calaresti!")
			else
				if true == horse.is_summon() then
					horse.unsummon()
				else
					horse.summon()
				end
			end
		end

		when 71131.use begin
			horse.set_appearance(20119)
			if pc.is_polymorphed() then
				 syschat("Nu poti calarii cat esti transformat.")
			elseif pc.is_riding() then
				 syschat("Nu poti invoca un mount cat timp calaresti!")
			else
				if true == horse.is_summon() then
					horse.unsummon()
				else
					horse.summon()
				end
			end
		end

		when 71161.use begin
			horse.set_appearance(20219)
			if pc.is_polymorphed() then
				 syschat("Nu poti calarii cat esti transformat.")
			elseif pc.is_riding() then
				 syschat("Nu poti invoca un mount cat timp calaresti!")
			else
				if true == horse.is_summon() then
					horse.unsummon()
				else
					horse.summon()
				end
			end
		end
	end
end

Cod: Selectaţi tot

quest ride begin
	state start begin
		function Ride( vnum, remain_time )
			ride_info = {
				[71137] = { 20120,	5*60,	apply.MOV_SPEED, 0,	1,	false,	false,	false},
				[71138] = { 20121,	5*60,	apply.MOV_SPEED, 0,	1,	false,	false,	false},
				[71139] = { 20122,	5*60,	apply.MOV_SPEED, 0,	1,	false,	false,	false},
				[71140] = { 20123,	5*60,	apply.MOV_SPEED, 0,	1,	false,	false,	false},
				[71141] = { 20124,	5*60,	apply.MOV_SPEED, 0,	1,	false,	false,	false},
				[71142] = { 20125,	5*60,	apply.MOV_SPEED, 0,	1,	false,	false,	false},
			}

			if pc.level < ride_info[vnum][5] then
				syschat("Your level is too low to use this mount.")
			else
				if ride_info[vnum][2] == 0 and remain_time != 0 then
					pc.mount( ride_info[vnum][1], remain_time*60 )
					pc.mount_bonus( ride_info[vnum][3], ride_info[vnum][4], remain_time*60 )
				else
					pc.mount( ride_info[vnum][1], ride_info[vnum][2] )
					pc.mount_bonus( ride_info[vnum][3], ride_info[vnum][4], ride_info[vnum][2] )
				end

				if true == ride_info[vnum][6] then
					pc.remove_item(vnum, 1)
				end	
			end	
		end

		when login begin
			local vnum, remain_time = pc.get_special_ride_vnum()
			if vnum != 0 then
				ride.Ride(vnum, remain_time)
			end
		end

		when 71137.use or 71138.use or 71139.use or 71140.use or 71141.use or 71142.use begin
			if pc.is_polymorphed() then
				syschat("You can´t ride if you´re polymorphed!")
			else 
				if false == pc.is_riding() then
					if true == horse.is_summon() then
						horse.unsummon()
					end
					ride.Ride(item.vnum, 0)
				else
					pc.unmount()
				end
			end
		end
	end
end
Mersi!
Cum il pot modifica pe al meu?
Avatar utilizator
SussyFlore
Nivel 4

Nivel 4
Mesaje: 675
Membru din: 14 Sep 2014, 13:14
Regat: Jinno
Aprecieri: 272  
Mulţumiri: 50  
Discord: Copiază ID
 Contact:
Medalii

SussyFlore scrie:
yonr1 scrie:

Cod: Selectaţi tot

quest mount_system begin
	state start begin
		when 71124.use begin
			horse.set_appearance(20114)
			if pc.is_polymorphed() then
				 syschat("Nu poti calarii cat esti transformat.")
			elseif pc.is_riding() then
				 syschat("Nu poti invoca un mount cat timp calaresti!")
			else
				if true == horse.is_summon() then
					horse.unsummon()
				else
					horse.summon()
				end
			end
		end

		when 71125.use begin
			horse.set_appearance(20115)
			if pc.is_polymorphed() then
				 syschat("Nu poti calarii cat esti transformat.")
			elseif pc.is_riding() then
				 syschat("Nu poti invoca un mount cat timp calaresti!")
			else
				if true == horse.is_summon() then
					horse.unsummon()
				else
					horse.summon()
				end
			end
		end

		when 71126.use begin
			horse.set_appearance(20116)
			if pc.is_polymorphed() then
				 syschat("Nu poti calarii cat esti transformat.")
			elseif pc.is_riding() then
				 syschat("Nu poti invoca un mount cat timp calaresti!")
			else
				if true == horse.is_summon() then
					horse.unsummon()
				else
					horse.summon()
				end
			end
		end

		when 71127.use begin
			horse.set_appearance(20117)
			if pc.is_polymorphed() then
				 syschat("Nu poti calarii cat esti transformat.")
			elseif pc.is_riding() then
				 syschat("Nu poti invoca un mount cat timp calaresti!")
			else
				if true == horse.is_summon() then
					horse.unsummon()
				else
					horse.summon()
				end
			end
		end

		when 71128.use begin
			horse.set_appearance(20118)
			if pc.is_polymorphed() then
				 syschat("Nu poti calarii cat esti transformat.")
			elseif pc.is_riding() then
				 syschat("Nu poti invoca un mount cat timp calaresti!")
			else
				if true == horse.is_summon() then
					horse.unsummon()
				else
					horse.summon()
				end
			end
		end

		when 71131.use begin
			horse.set_appearance(20119)
			if pc.is_polymorphed() then
				 syschat("Nu poti calarii cat esti transformat.")
			elseif pc.is_riding() then
				 syschat("Nu poti invoca un mount cat timp calaresti!")
			else
				if true == horse.is_summon() then
					horse.unsummon()
				else
					horse.summon()
				end
			end
		end

		when 71161.use begin
			horse.set_appearance(20219)
			if pc.is_polymorphed() then
				 syschat("Nu poti calarii cat esti transformat.")
			elseif pc.is_riding() then
				 syschat("Nu poti invoca un mount cat timp calaresti!")
			else
				if true == horse.is_summon() then
					horse.unsummon()
				else
					horse.summon()
				end
			end
		end
	end
end

Cod: Selectaţi tot

quest ride begin
	state start begin
		function Ride( vnum, remain_time )
			ride_info = {
				[71137] = { 20120,	5*60,	apply.MOV_SPEED, 0,	1,	false,	false,	false},
				[71138] = { 20121,	5*60,	apply.MOV_SPEED, 0,	1,	false,	false,	false},
				[71139] = { 20122,	5*60,	apply.MOV_SPEED, 0,	1,	false,	false,	false},
				[71140] = { 20123,	5*60,	apply.MOV_SPEED, 0,	1,	false,	false,	false},
				[71141] = { 20124,	5*60,	apply.MOV_SPEED, 0,	1,	false,	false,	false},
				[71142] = { 20125,	5*60,	apply.MOV_SPEED, 0,	1,	false,	false,	false},
			}

			if pc.level < ride_info[vnum][5] then
				syschat("Your level is too low to use this mount.")
			else
				if ride_info[vnum][2] == 0 and remain_time != 0 then
					pc.mount( ride_info[vnum][1], remain_time*60 )
					pc.mount_bonus( ride_info[vnum][3], ride_info[vnum][4], remain_time*60 )
				else
					pc.mount( ride_info[vnum][1], ride_info[vnum][2] )
					pc.mount_bonus( ride_info[vnum][3], ride_info[vnum][4], ride_info[vnum][2] )
				end

				if true == ride_info[vnum][6] then
					pc.remove_item(vnum, 1)
				end	
			end	
		end

		when login begin
			local vnum, remain_time = pc.get_special_ride_vnum()
			if vnum != 0 then
				ride.Ride(vnum, remain_time)
			end
		end

		when 71137.use or 71138.use or 71139.use or 71140.use or 71141.use or 71142.use begin
			if pc.is_polymorphed() then
				syschat("You can´t ride if you´re polymorphed!")
			else 
				if false == pc.is_riding() then
					if true == horse.is_summon() then
						horse.unsummon()
					end
					ride.Ride(item.vnum, 0)
				else
					pc.unmount()
				end
			end
		end
	end
end
Mersi!
Cum il pot modifica pe al meu?
quest mount_system begin
state start begin
when 71124.use begin
horse.set_appearance(20114)
if pc.is_polymorphed() then
syschat("Nu poti calarii cat esti transformat.")
elseif pc.is_riding() then
syschat("Nu poti invoca un mount cat timp calaresti!")
else
if true == horse.is_summon() then
horse.unsummon()
else
horse.summon()
end
end
end

when 71125.use begin
horse.set_appearance(20115)
if pc.is_polymorphed() then
syschat("Nu poti calarii cat esti transformat.")
elseif pc.is_riding() then
syschat("Nu poti invoca un mount cat timp calaresti!")
else
if true == horse.is_summon() then
horse.unsummon()
else
horse.summon()
end
end
end

when 71126.use begin
horse.set_appearance(20116)
if pc.is_polymorphed() then
syschat("Nu poti calarii cat esti transformat.")
elseif pc.is_riding() then
syschat("Nu poti invoca un mount cat timp calaresti!")
else
if true == horse.is_summon() then
horse.unsummon()
else
horse.summon()
end
end
end

when 71127.use begin
horse.set_appearance(20117)
if pc.is_polymorphed() then
syschat("Nu poti calarii cat esti transformat.")
elseif pc.is_riding() then
syschat("Nu poti invoca un mount cat timp calaresti!")
else
if true == horse.is_summon() then
horse.unsummon()
else
horse.summon()
end
end
end

when 71128.use begin
horse.set_appearance(20118)
if pc.is_polymorphed() then
syschat("Nu poti calarii cat esti transformat.")
elseif pc.is_riding() then
syschat("Nu poti invoca un mount cat timp calaresti!")
else
if true == horse.is_summon() then
horse.unsummon()
else
horse.summon()
end
end
end

when 71131.use begin
horse.set_appearance(20119)
if pc.is_polymorphed() then
syschat("Nu poti calarii cat esti transformat.")
elseif pc.is_riding() then
syschat("Nu poti invoca un mount cat timp calaresti!")
else
if true == horse.is_summon() then
horse.unsummon()
else
horse.summon()
end
end
end

when 71161.use begin
horse.set_appearance(20219)
if pc.is_polymorphed() then
syschat("Nu poti calarii cat esti transformat.")
elseif pc.is_riding() then
syschat("Nu poti invoca un mount cat timp calaresti!")
else
if true == horse.is_summon() then
horse.unsummon()
else
horse.summon()
end
end
end
end
end
Am testat questul si imi da syserr si la asta:
SYSERR: Jan 24 11:34:40 :: RunState: LUA_ERROR: [string "mount_system"]:1: attempt to call field `set_appearance' (a nil value)
SYSERR: Jan 24 11:34:40 :: WriteRunningStateToSyserr: LUA_ERROR: quest mount_system.start click
Avatar utilizator
FRANCIS
Administrator Adjunct

Administrator Adjunct
Mesaje: 7879
Membru din: 06 Noi 2015, 19:52
Regat: Chunjo
Aprecieri: 334  
Mulţumiri: 54528  
Discord: Copiază ID
Medalii

Topic inactiv . Arhivat !
If you talk to a man in a language he understands, that goes to his head. If you talk to him in his own language, that goes to his heart.
Imagine
ENJOY
Imagine
Afișează semnătura
Închis
Răspunsuri
1
Vizualizări
184
Răspunsuri
4
Vizualizări
287
Răspunsuri
2
Vizualizări
203
Răspunsuri
2
Vizualizări
223

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

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Google [Bot] și 168 vizitatori