Jump to content

help error syserr in the quest


Recommended Posts

quests:

quest pet_system_send_back begin
	state start begin
		when login begin cmdchat("SetPetSendAwayButtonIndex "..q.getcurrentquestindex()) end
		when info or button begin
			local v, pet_ = pc.getf("pet_system", "pet_spawn_id"), pc.getf("pet_system", "pet_spawn")
			local effect = pet_info[v][3]
			local az = "d:ymir workeffectetcappear_dienpc2_appear.mse"
			if pet_ == nil or v == nil then return end
			if effect != 0 then pet.spawn_effect (pet_, az) end
			pet.remove_bonus()
			pet.unsummon(pet_)
			pc.setf("pet_system","pet_spawn",0) pc.setf("pet_system","pet_spawn_id",0) 
			cleartimer("refresh_pet_stats")
		end
	end
end

quest pet_system_slots_button begin
	state start begin
		when login begin cmdchat("SetPetClearItemSlotButtonIndex "..q.getcurrentquestindex()) end
		when info or button begin
			local pet,it = pc.getf("pet_system","pet_spawn"),pc.getqf("type_item")
			cmdchat("GetInputStringStart")
			local btype = input(cmdchat("GetPetClearSlot"))
			cmdchat("GetInputStringEnd")
			pc.setqf("type_item", btype)
			local b = {[0]="SetPetHead",[1]="SetPetNeck",[2]="SetPetFoot"}
			cmdchat(b[it].." 0")
			local k = pc.getf("pet_system", b[it].."_"..pet)
			if k != 0 then
				pc.give_item2(k,1)
				affect.remove_collect(item_info[k][2], item_info[k][3], 60*60*24*360*60)
				pc.setf("pet_system", b[it].."_"..pet, 0)
				pc.setqf("type_item", -1)
			end
		end
	end
end

ch1 syserr:

SYSERR: Nov 26 14:46:14 :: RunState: LUA_ERROR: [string "pet_system_send_back"]:2: attempt to index field `?' (a nil value)
SYSERR: Nov 26 14:46:14 :: WriteRunningStateToSyserr: LUA_ERROR: quest pet_system_send_back.start click
SYSERR: Nov 26 14:46:18 :: RunState: LUA_ERROR: [string "pet_system_send_back"]:2: attempt to index field `?' (a nil value)
SYSERR: Nov 26 14:46:18 :: WriteRunningStateToSyserr: LUA_ERROR: quest pet_system_send_back.start click
SYSERR: Nov 26 14:46:18 :: RunState: LUA_ERROR: [string "pet_system_send_back"]:2: attempt to index field `?' (a nil value)
SYSERR: Nov 26 14:46:18 :: WriteRunningStateToSyserr: LUA_ERROR: quest pet_system_send_back.start click
SYSERR: Nov 26 14:46:19 :: RunState: LUA_ERROR: [string "pet_system_send_back"]:2: attempt to index field `?' (a nil value)
SYSERR: Nov 26 14:46:19 :: WriteRunningStateToSyserr: LUA_ERROR: quest pet_system_send_back.start click
SYSERR: Nov 26 14:46:19 :: RunState: LUA_ERROR: [string "pet_system_send_back"]:2: attempt to index field `?' (a nil value)
SYSERR: Nov 26 14:46:19 :: WriteRunningStateToSyserr: LUA_ERROR: quest pet_system_send_back.start click
SYSERR: Nov 26 14:46:36 :: RunState: LUA_ERROR: [string "pet_system_slots_button"]:7: attempt to concatenate field `?' (a nil value)
SYSERR: Nov 26 14:46:36 :: WriteRunningStateToSyserr: LUA_ERROR: quest pet_system_slots_button.start click
SYSERR: Nov 26 14:46:41 :: RunState: LUA_ERROR: [string "pet_system_slots_button"]:7: attempt to concatenate field `?' (a nil value)
SYSERR: Nov 26 14:46:41 :: WriteRunningStateToSyserr: LUA_ERROR: quest pet_system_slots_button.start click
  • Love 1
Link to comment
Share on other sites

  • 2 years later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.