Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[POPRAWA] Quest na mounty


Rekomendowane odpowiedzi

Opublikowano

Witam, mam taki błąd w syserr :

SYSERR: Dec 14 00:10:08 :: RunState: LUA_ERROR: locale/poland/quest/object/state/mount:139: attempt to index field `?' (a nil value)
SYSERR: Dec 14 00:10:08 :: WriteRunningStateToSyserr: LUA_ERROR: quest mount.start letter

quest :

quest mount begin
	state start begin
		when 71114.use or 71115.use or 71116.use or 71117.use or 71118.use or 71119.use or 71120.use or 71121.use or 71124.use or 71125.use or 71126.use or
			71127.use or 71128.use or 71137.use or 71138.use or 71139.use or 71140.use or 71141.use or 71142.use or 52001.use or 52002.use or 52003.use or
			52004.use or 52005.use or 52006.use or 52007.use or 52008.use or 52009.use or 52010.use or 52011.use or 52012.use or 52013.use or 52014.use or
			52015.use or 52016.use or 52017.use or 52018.use or 52019.use or 52020.use or 52021.use or 52022.use or 52023.use or 52024.use or 52025.use or
			52026.use or 52027.use or 52028.use or 52029.use or 52030.use or 52031.use or 52032.use or 52033.use or 52034.use or 52035.use or 52036.use or
			52037.use or 52038.use or 52039.use or 52040.use or 52041.use or 52042.use or 52043.use or 52044.use or 52045.use or 52046.use or 52047.use or
			52048.use or 52049.use or 52050.use or 52051.use or 52052.use or 52053.use or 52054.use or 52055.use or 52056.use or 52057.use or 52058.use or
			52059.use or 52060.use or 52061.use or 52062.use or 52063.use or 52064.use or 52065.use or 52066.use or 52067.use or 52068.use or 52069.use or
			52070.use or 52071.use or 52072.use or 52073.use or 52074.use or 52075.use or 52076.use or 52077.use or 52078.use or 52079.use or 52080.use or
			52081.use or 52082.use or 52083.use or 52084.use or 52085.use or 52086.use or 52087.use or 52088.use or 52089.use or 52090.use with
			not pc.is_polymorphed() begin
			mount.ride(item.get_vnum())
		end
		function ride(vnum)
			if pc.is_mount() then
				return
			end
			local time = mount.info(vnum, 8)
			local bon1id = mount.info(vnum, 2) bon1val = mount.info(vnum, 3)
			local bon2id = mount.info(vnum, 4) bon2val = mount.info(vnum, 5)
			local bon3id = mount.info(vnum, 6) bon3val = mount.info(vnum, 7)

			if pc.get_armor() == 11901 or pc.get_armor() == 11902 then
				say_title(pc.get_name().."...")
				say("Zdejmij swoją suknię i ponownie założ pieczęć!")
				return
			elseif pc.get_armor() == 11903 or pc.get_armor() == 11904 then
				say_title(pc.get_name().."...")
				say("Zdejmij swój garnitur i ponownie założ pieczęć!")
				return
			end

			time = time*60
			pc.mount(mount.info(vnum, 1), time)
			if bon1id !=0 and bon1val !=0 then
				pc.mount_bonus(bon1id, bon1val, time)
			end
			if bon2id !=0 and bon2val !=0 then
				pc.mount_bonus(bon2id, bon2val, time)
			end
			if bon3id !=0 and bon3val !=0 then
				pc.mount_bonus(bon3id, bon3val, time)
			end
		end
		function info(vnum, index)
			mount_list={ --  mount  bon1  bon2  bon3  czas (min.)
				[52001] = {20201, 1, 5000, 0, 0, 0, 0, 10080},
				[52002] = {20201, 0, 0, 0, 0, 0, 0, 10080},
				[52003] = {20201, 0, 0, 0, 0, 0, 0, 10080},
				[52004] = {20201, 0, 0, 0, 0, 0, 0, 10080},
				[52005] = {20201, 0, 0, 0, 0, 0, 0, 10080},
				[52006] = {20205, 0, 0, 0, 0, 0, 0, 10080},
				[52007] = {20205, 0, 0, 0, 0, 0, 0, 10080},
				[52008] = {20205, 0, 0, 0, 0, 0, 0, 10080},
				[52009] = {20205, 0, 0, 0, 0, 0, 0, 10080},
				[52010] = {20205, 0, 0, 0, 0, 0, 0, 10080},
				[52011] = {20209, 0, 0, 0, 0, 0, 0, 10080},
				[52012] = {20209, 0, 0, 0, 0, 0, 0, 10080},
				[52013] = {20209, 0, 0, 0, 0, 0, 0, 10080},
				[52014] = {20209, 0, 0, 0, 0, 0, 0, 10080},
				[52015] = {20209, 0, 0, 0, 0, 0, 0, 10080},
				[52016] = {20202, 0, 0, 0, 0, 0, 0, 10080},
				[52017] = {20202, 0, 0, 0, 0, 0, 0, 10080},
				[52018] = {20202, 0, 0, 0, 0, 0, 0, 10080},
				[52019] = {20202, 0, 0, 0, 0, 0, 0, 10080},
				[52020] = {20202, 0, 0, 0, 0, 0, 0, 10080},
				[52021] = {20206, 0, 0, 0, 0, 0, 0, 10080},
				[52022] = {20206, 0, 0, 0, 0, 0, 0, 10080},
				[52023] = {20206, 0, 0, 0, 0, 0, 0, 10080},
				[52024] = {20206, 0, 0, 0, 0, 0, 0, 10080},
				[52025] = {20206, 0, 0, 0, 0, 0, 0, 10080},
				[52026] = {20210, 0, 0, 0, 0, 0, 0, 10080},
				[52027] = {20210, 0, 0, 0, 0, 0, 0, 10080},
				[52028] = {20210, 0, 0, 0, 0, 0, 0, 10080},
				[52029] = {20210, 0, 0, 0, 0, 0, 0, 10080},
				[52030] = {20210, 0, 0, 0, 0, 0, 0, 10080},
				[52031] = {20203, 0, 0, 0, 0, 0, 0, 10080},
				[52032] = {20203, 0, 0, 0, 0, 0, 0, 10080},
				[52033] = {20203, 0, 0, 0, 0, 0, 0, 10080},
				[52034] = {20203, 0, 0, 0, 0, 0, 0, 10080},
				[52035] = {20203, 0, 0, 0, 0, 0, 0, 10080},
				[52036] = {20207, 0, 0, 0, 0, 0, 0, 10080},
				[52037] = {20207, 0, 0, 0, 0, 0, 0, 10080},
				[52038] = {20207, 0, 0, 0, 0, 0, 0, 10080},
				[52039] = {20207, 0, 0, 0, 0, 0, 0, 10080},
				[52040] = {20207, 0, 0, 0, 0, 0, 0, 10080},
				[52041] = {20211, 0, 0, 0, 0, 0, 0, 10080},
				[52042] = {20211, 0, 0, 0, 0, 0, 0, 10080},
				[52043] = {20211, 0, 0, 0, 0, 0, 0, 10080},
				[52044] = {20211, 0, 0, 0, 0, 0, 0, 10080},
				[52045] = {20211, 0, 0, 0, 0, 0, 0, 10080},
				[52046] = {20204, 0, 0, 0, 0, 0, 0, 10080},
				[52047] = {20204, 0, 0, 0, 0, 0, 0, 10080},
				[52048] = {20204, 0, 0, 0, 0, 0, 0, 10080},
				[52049] = {20204, 0, 0, 0, 0, 0, 0, 10080},
				[52050] = {20204, 0, 0, 0, 0, 0, 0, 10080},
				[52051] = {20208, 0, 0, 0, 0, 0, 0, 10080},
				[52052] = {20208, 0, 0, 0, 0, 0, 0, 10080},
				[52053] = {20208, 0, 0, 0, 0, 0, 0, 10080},
				[52054] = {20208, 0, 0, 0, 0, 0, 0, 10080},
				[52055] = {20208, 0, 0, 0, 0, 0, 0, 10080},
				[52056] = {20212, 0, 0, 0, 0, 0, 0, 10080},
				[52057] = {20212, 0, 0, 0, 0, 0, 0, 10080},
				[52058] = {20212, 0, 0, 0, 0, 0, 0, 10080},
				[52059] = {20212, 0, 0, 0, 0, 0, 0, 10080},
				[52060] = {20212, 0, 0, 0, 0, 0, 0, 10080},
				[52061] = {20213, 0, 0, 0, 0, 0, 0, 10080},
				[52062] = {20213, 0, 0, 0, 0, 0, 0, 10080},
				[52063] = {20213, 0, 0, 0, 0, 0, 0, 10080},
				[52064] = {20213, 0, 0, 0, 0, 0, 0, 10080},
				[52065] = {20213, 0, 0, 0, 0, 0, 0, 10080},
				[52066] = {20214, 0, 0, 0, 0, 0, 0, 10080},
				[52067] = {20214, 0, 0, 0, 0, 0, 0, 10080},
				[52068] = {20214, 0, 0, 0, 0, 0, 0, 10080},
				[52069] = {20214, 0, 0, 0, 0, 0, 0, 10080},
				[52070] = {20214, 0, 0, 0, 0, 0, 0, 10080},
				[52071] = {20215, 0, 0, 0, 0, 0, 0, 10080},
				[52072] = {20215, 0, 0, 0, 0, 0, 0, 10080},
				[52073] = {20215, 0, 0, 0, 0, 0, 0, 10080},
				[52074] = {20215, 0, 0, 0, 0, 0, 0, 10080},
				[52075] = {20215, 0, 0, 0, 0, 0, 0, 10080},
				[52076] = {20216, 0, 0, 0, 0, 0, 0, 10080},
				[52077] = {20216, 0, 0, 0, 0, 0, 0, 10080},
				[52078] = {20216, 0, 0, 0, 0, 0, 0, 10080},
				[52079] = {20216, 0, 0, 0, 0, 0, 0, 10080},
				[52080] = {20216, 0, 0, 0, 0, 0, 0, 10080},
				[52081] = {20217, 0, 0, 0, 0, 0, 0, 10080},
				[52082] = {20217, 0, 0, 0, 0, 0, 0, 10080},
				[52083] = {20217, 0, 0, 0, 0, 0, 0, 10080},
				[52084] = {20217, 0, 0, 0, 0, 0, 0, 10080},
				[52085] = {20217, 0, 0, 0, 0, 0, 0, 10080},
				[52086] = {20218, 0, 0, 0, 0, 0, 0, 10080},
				[52087] = {20218, 0, 0, 0, 0, 0, 0, 10080},
				[52088] = {20218, 0, 0, 0, 0, 0, 0, 10080},
				[52089] = {20218, 0, 0, 0, 0, 0, 0, 10080},
				[52090] = {20218, 0, 0, 0, 0, 0, 0, 10080},
				[71114] = {20110, 0, 0, 0, 0, 0, 0, 10080},
				[71115] = {20110, 0, 0, 0, 0, 0, 0, 10080},
				[71116] = {20111, 0, 0, 0, 0, 0, 0, 10080},
				[71117] = {20111, 0, 0, 0, 0, 0, 0, 10080},
				[71118] = {20112, 0, 0, 0, 0, 0, 0, 10080},
				[71119] = {20112, 0, 0, 0, 0, 0, 0, 10080},
				[71120] = {20113, 0, 0, 0, 0, 0, 0, 10080},
				[71121] = {20113, 0, 0, 0, 0, 0, 0, 10080},
				[71124] = {20114, 53, 50, 34, 15, 1, 3000, 10080},
				[71125] = {20115, 53, 30, 63, 5, 1, 2000, 10080},
				[71126] = {20116, 53, 30, 15, 10, 1, 2500, 10080},
				[71127] = {20117, 53, 35, 16, 10, 1, 2000, 10080},
				[71128] = {20118, 53, 50, 15, 10, 16, 10, 10080},
				[71137] = {20219, 1, 5000, 34, 10, 63, 10, 10080},
				[71138] = {20119, 53, 80, 15, 10, 16, 10, 10080},
				[71139] = {20216, 53, 50, 15, 5, 16, 5, 10080},
				[71140] = {20215, 53, 100, 15, 10, 16, 10, 10080},
				[71141] = {20213, 53, 50, 34, 5, 63, 10, 10080},
				[71142] = {20214, 53, 100, 34, 15, 63, 20, 10080}
			}
			return mount_list[vnum][index]
		end
	end
end

Proszę o pomoc.

Opublikowano

Błędu w kodzie nie ma żadnego, kompiluje się bez problemu.

Nie wiem czy to w jakikolwiek sposób pomoże, ale ten sam błąd miałem mając starą wersję mysql'a.

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...