--ħдħtxtű дluac makeqmx,itemid,foot itemidΪħĵid footΪħĲ

Delegate.RegDelLoginEvent("QMXLogin")
function QMXLogin(player)
	local nowfoot = tonumber(Field.Get(player,"MakeQMXFoot"))
	if type(nowfoot) == "number" then
		if nowfoot > 0 then
			Char.SetWalkPostEvent(nil,"QMXFootLoop",player)
			Char.SetData(player,%_п%,4)
			NLG.SystemMessage(player,"ħʣ"..nowfoot.."")
		else
			Char.SetData(player,%_п%,0)
		end
	else
		Char.SetData(player,%_п%,0)
	end
	local nowfoot1 = tonumber(Field.Get(player,"MakeQMXFoot1"))
	if type(nowfoot1) == "number" then
		if nowfoot1 > 0 then
			Char.SetWalkPostEvent(nil,"QMXFootLoop",player)
			NLG.SystemMessage(player,"ħʣ"..nowfoot1.."")
		end
	end
	return
end
function QMXFootLoop(player)
	local nowfoot = tonumber(Field.Get(player,"MakeQMXFoot"))
	if type(nowfoot) == "number" then
		if nowfoot > 0 then
			Field.Set(player,"MakeQMXFoot",(nowfoot-1))
		else
			Char.SetData(player,%_п%,0)
			Field.Set(player,"MakeQMXFoot","")
			NLG.SystemMessage(player,"ħЧˡ")
		end
	end
	local nowfoot1 = tonumber(Field.Get(player,"MakeQMXFoot1"))
	if type(nowfoot1) == "number" then
		if nowfoot1 > 0 then
			Field.Set(player,"MakeQMXFoot1",(nowfoot1-1))
			Battle.Encount(player,player)
		else
			Field.Set(player,"MakeQMXFoot1","")
			NLG.SystemMessage(player,"ħЧˡ")
		end
	end
end