Ride.quest hiba

Indította xTryx, 2018-08-28, 13:52:13


quest ride begin
state start begin
function Ride( vnum, remain_time )
ride_info = {
[31200] = { 31200, 60*60, apply.ATT_SPEED, 20, 75, false },
}

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

when login begin
local vnum, remain_time = pc.get_special_ride_vnum()

if 0 != vnum then
ride.Ride(vnum, remain_time)
end
end

when 31200.use begin
if pc.is_polymorphed() then
syschat("|cffffcc00|H|h[Rendszer]:|cFF6BD2FF|H|h Át vagy változva!")
elseif false == pc.is_riding() then
if true == horse.is_summon() then
horse.unsummon()
end

ride.Ride(item.vnum, 0)
else
pc.unmount()
end
end
when logout or disconnect begin
pc.unmount()
end
end
end


syserr:
SYSERR: Aug 28 13:40:28.303954 :: RunState: LUA_ERROR: locale/hungary/quest/object/state/ride:4: attempt to index field `?' (a nil value)
SYSERR: Aug 28 13:40:28.304030 :: WriteRunningStateToSyserr: LUA_ERROR: quest ride.start click